コード例 #1
0
 public IActionResult Delete(Guid id)
 {
     try
     {
         if (id == null)
         {
             return(StatusCode(400, $"ID is not valid."));
         }
         else
         {
             var res = _staff.Delete(id);
             return(Json(res));
         }
     }
     catch (Exception ex)
     {
         _logger.LogCritical($"Exception while get list of items.", ex);
         return(StatusCode(500, $"Exception while get list of items. {ex.Message}"));
     }
 }
コード例 #2
0
ファイル: Staff.cs プロジェクト: solarga/Asset
 public int Delete(Guid userId)
 {
     return(dal.Delete(userId));
 }