public ActionResult Delete(int id) { bool success = true; string message = string.Empty; if (ModelState.IsValid) { DataPurge entity = _dataPurgeService.GetDataPurgeById(id); if (entity != null) { try { _dataPurgeService.Delete(entity); //SuccessNotification(_resourceManager.GetString("DataPurge.SuccessToDeletePurge")); } catch (Exception ex) { //ErrorNotification(_resourceManager.GetString("DataPurge.FailedToDeletePurge"), ex); success = false; message = _resourceManager.GetString("DataPurge.FailedToDeletePurge"); _logger.WriteLog("Failed to delete data purge with id=" + id, ex); } } } return(Json(new { success, message })); }
public void Update(DataPurge entity) { _dataPurgeRepository.Update(entity); }
public void Insert(DataPurge entity) { _dataPurgeRepository.Insert(entity); }
public void Delete(DataPurge entity) { _dataPurgeRepository.Delete(entity); }