What’s Your Flava

When developing sites with Umbraco there are different approaches.

  1. Quick (and dirty)
  2. Neat (and Tidy)

In the first scenario will be a good choice when you have to setup a simple site, when there’s no need for custom-logic and almost no additional data to maintain. When you have more data or businesslogic you will need a layered solution.

Lees verder “What’s Your Flava”

WDTBD: [FromUri]

I have an action method in my MVC Api controller. It is invoked as [httpget], so parameters are passed through in the querystring. In my case it’s an integer array:

Mydomain.com/[controllername]/[action]?id=1&id=2&id=3

But when I want to use parameter ‘id’ in my code, why is it null and not an array?

Obviously I need to add FromUri.

 [HttpGet]
 public HttpResponseMessage ChangeStateOfUsers([FromUri] int[] ids, bool state)

Didn’t read about it before.

 

From ASP.Net to MVC.Net

Halfway the nineties the internet became available for the public. I created my first html-page, later on I realized some things should be automated and I managed to find a job in -what I call- the automation of web-sites (“oh, you work with the internet, then you can help me with my email…”). Then it started from what we now call ASP-Classic to ASP.Net and MVC.Net. Some thoughts about it. Lees verder “From ASP.Net to MVC.Net”

Maak een gratis website of blog op WordPress.com.

Omhoog ↑