public ActionResult <API.Response.JWTToken> Login([FromBody] API.Request.LoginCredentials loginCred) { var token = AuthService.Login(loginCred); return(Ok(new API.Response.JWTToken() { Token = token })); }
public async Task <ActionResult <JWTToken> > Login([FromBody] API.Request.LoginCredentials loginCred) { var token = await AuthService.Login(loginCred); return(Ok(new JWTToken() { Token = token })); }