Esempio n. 1
0
 public ActionResult Signin([FromBody] LoginInVO vo)
 {
     if (vo == null)
     {
         return(BadRequest("No inputs"));
     }
     try
     {
         var _result = _loginBusiness
                       .Autenticate(vo.UserName, vo.Password)
                       .CreateVO <Token, LoginOutVO>()
         ;
         return(Ok(_result));
     }
     catch (Exception ex)
     {
         return(this.ReturnActionResult(ex));
     }
 }