예제 #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))));
     }
 }
 private void CleanUp(ILevelGroupService levelGroupService, LevelGroup group)
 {
     levelGroupService.DeleteLevelGroup(group.Id);
 }