Exemplo n.º 1
0
 public IActionResult Get([FromQuery] RepoFilter filter)
 {
     try
     {
         var result = _service.Get(filter);
         if (result == null)
         {
             return(null);
         }
         return(Ok(result));
     }
     catch (Exception e)
     {
         try { _logService.SendLogError(e); } catch (System.Exception ex) { return(StatusCode(503, ex)); }
         return(StatusCode(503, e));
     }
 }