public async Task <ActionResult <ResponseJWTDTO> > Login([FromBody] LoginDTO userInfo) { try { Users UserModels = new Users(db); int ID_USUARIO = UserModels.AuthLogin(userInfo); return(Authenticate.BuildToken(ID_USUARIO)); } catch (HttpException ex) { return(StatusCode((int)ex.CodeStatus, new { ID = ex.traceID, Error = ex.Message, Describe = ex.describe })); } }