I am getting into ASP.NET Core 2.0 with Web API. One of my first methods are my login:
///
/// API endpoint to login a user
///
/
I would Highly recommend using [ApiController]
and other attributes that help ease validation in web API based projects.
[ApiController]
this attribute does all basic validation on the modal for you before it enters the method. So you only have to inspect the modal if your want to do some form of custom validation.