Controller Scoped Model Binding in ASP.NET Core

Want to avoid [FromBody] attributes everywhere? Don’t want to use [ApiController] strict conventions? Don’t want to apply IInputFormatter’s globally?…

Read this article

How to register MVC controllers shipped with a class library in ASP.NET Core

In many cases you’ll want to ship MVC controllers, possibly views or taghelpers, etc… as part of your class library. To do this correctly you’ll want to add your assembly to ASP.NET’s “Application…

Read this article

Need to remove an auto-routed controller in Umbraco?

Umbraco will auto-route some controllers automatically. These controllers are any MVC SurfaceControllers or WebApi UmbracoApiController types discovered during startup. There might be some cases where…

Read this article

ClientDependency 1.8 released

.nuget-badge code {background-color: #202020;border: 4px solid silver;border-bottom-left-radius: 5px 5px;border-bottom-right-radius: 5px 5px;border-top-left-radius: 5px 5px;border-top-right-radius: 5…

Read this article

Model binding with FromServices in ASP.Net 5

Here’s a pretty nifty feature I found in ASP.Net 5 – you can construct your model during model binding with IoC without any additional work. This is available on the dev branch on GitHub and is based…

Read this article

ASP.Net 5 Re-learning a few things (part 2)

This is part 2 of a series of posts about some fundamental changes in ASP.Net 5 that we’ll all need to re-learn (or un-learn!) Part 1: http://shazwazza.com/post/aspnet-5-re-learning-a-few-things-part-…

Read this article

Custom MVC routes within the Umbraco pipeline

A while ago I wrote a post on how to do custom MVC routing in Umbraco, though the end result wasn’t quite ideal. There were a few tricks required and It wasn’t perfect since there were problems with r…

Read this article

MVC Controllers as plugins with MEF and Autofac

Disclaimer This blog posts talks about Umbraco v5 (Jupiter), however since the state of the codebase is in it’s infancy, the details about Umbraco v5 in this article may not be accurate once Umbraco…

Read this article

Binding a custom property with model binders

This post was imported from FARMCode.org which has been discontinued. These posts now exist here as an archive. They may contain broken links and images.In ASP.Net MVC Model Binders are great but what…

Read this article

Custom MVC ModelBinder with Complex Models/Objects/Interfaces using built in MVC Validation

I’ve been creating some cool stuff using ASP.Net MVC 3 lately and came across a situation where I’d like to have quite a complex model/object bound to an Action on my Controller based on a set of post…

Read this article