Exemple #1
0
 public IActionResult Post(ActivityLogCreateRequestModel model)
 {
     try
     {
         var result = _service.Create(model);
         if (result == null)
         {
             return(NotFound(model));
         }
         return(Ok(result));
     }
     catch (Exception e)
     {
         try { _logService.SendLogError(e); } catch (System.Exception ex) { return(StatusCode(503, ex)); }
         return(StatusCode(503, e));
     }
 }