Пример #1
0
 public IActionResult LoginUsuario([FromQuery] string cpf, [FromQuery] string senha)
 {
     try
     {
         var usuario = usuarioServico.Login(cpf, senha);
         return(Ok(usuario));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }