Exemplo n.º 1
0
 public async Task <IActionResult> Find([FromQuery] ReceitaFilter filter)
 {
     try
     {
         var result = _service.List(filter);
         return(Ok(result));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, new Error(ex.Message)));
     }
 }