public object Post([FromBody] UserVO user)
 {
     if (user == null)
     {
         return(BadRequest());
     }
     return(_loginBusiness.FindByLogin(user));
 }
Beispiel #2
0
 public object Post([FromBody] LoginVO usuario)
 {
     if (usuario == null)
     {
         return(BadRequest());
     }
     return(_loginBusiness.FindByLogin(usuario));
 }
Beispiel #3
0
 public object Post([FromBody] LoginVO login)
 {
     if (login == null)
     {
         return(BadRequest());
     }
     return(_loginBusiness.FindByLogin(login));
 }
Beispiel #4
0
 public IActionResult Post([FromBody] User user)
 {
     if (user == null)
     {
         return(BadRequest());
     }
     return(Ok(_loginBusiness.FindByLogin(user)));
 }
 public object Post([FromBody] UserVO user)
 {
     if (user == null)
     {
         return(NotFound());
     }
     return(_LoginService.FindByLogin(user));
 }
 public IActionResult Post([FromBody] User user)
 {
     try
     {
         if (user == null)
         {
             return(BadRequest());
         }
         return(new ObjectResult(_loginBusiness.FindByLogin(user)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Beispiel #7
0
 public HttpResponseMessage Post([FromBody] TokenRequest user)
 {
     try
     {
         return(ResponseBasicJson(HttpStatusCode.OK, _loginBusiness.FindByLogin(user)));
     }
     catch (ValidacaoException e)
     {
         return(ResponseBasicJson(e.MensagemError.StatusCode, e.MensagemError));
     }
     catch (Exception e)
     {
         MensagemError msg = MensagensUtil.ObterMensagem(HttpStatusCode.BadRequest, "M199");
         return(ResponseBasicJson(msg.StatusCode, msg));
     }
 }
 public object Post([FromBody]UserDTO user)
 {
     if (user == null) return BadRequest();
     return _loginBusiness.FindByLogin(user);
 }