示例#1
0
        public ActionResult <API.Response.JWTToken> Login([FromBody] API.Request.LoginCredentials loginCred)
        {
            var token = AuthService.Login(loginCred);

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

            return(Ok(new JWTToken()
            {
                Token = token
            }));
        }