コード例 #1
0
 public HttpResponseMessage Delete(int id)
 {
     try
     {
         _service.DeleteLevelGroup(id);
         return(Request.CreateResponse());
     }
     catch (Exception ex)
     {
         _logger.Error("Error when deleting Level Group", ex);
         return(Request.CreateErrorResponse(
                    HttpStatusCode.InternalServerError,
                    new HttpError(_resourceManager.GetString(ExceptionResources.GeneralException))));
     }
 }
コード例 #2
0
 private void CleanUp(ILevelGroupService levelGroupService, LevelGroup group)
 {
     levelGroupService.DeleteLevelGroup(group.Id);
 }