Clean up your Web API controllers with model validation and null check

added by fdub
10/28/2012 9:32:49 AM

5 Kicks, 428 Views

Regardless of what kind of applications you build with Web API, you are bound to write a lot of similar code in many of your actions – to check if the model is valid and to check if the submitted object is null.


0 comments