コード例 #1
0
 public IActionResult Get(Guid id)
 {
     try
     {
         var results = _projectManagerService.GetProjectManager(id);
         if (results.IsSuccess)
         {
             return(Ok(results.projectManager));
         }
         return(NotFound(results));
     }
     catch (Exception e)
     {
         var msg = $"Error loading ";
         Log.Error(e, msg);
         return(StatusCode(500, $"{msg} {e.Message}"));
     }
 }