Here's my WebAPI action..
public class AuthenticationController : ApiController { [Route("api/auth/login")] [HttpPost] public object Login([FromBody] LoginViewModel loginViewModel) ... How do I generate a URL inside a MVC view?
I've tried this...
@Url.HttpRouteUrl("DefaultApi", new { controller = "Authentication", action= "Login" })" ... but it says that DefaultApi doesn't exist.
Why does the method want a route name and route parameters?
How did they manage to make routing even more complicated than regular MVC?
What kind of web framework makes requesting a web page / API method / web service thing difficult? Its ridiculous.