0
kicks
Clean up your Web API controllers with model validation and null check
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.