public ActionResult DeleteHistoryEntry(int id, GridCommand command) { var historyEntry = _scheduleTaskService.GetHistoryEntryById(id); if (historyEntry != null) { _scheduleTaskService.DeleteHistoryEntry(historyEntry); } return(HistoryList(command, historyEntry.ScheduleTaskId)); }
public ActionResult DeleteHistoryEntry(int id, GridCommand command) { var historyEntry = _scheduleTaskService.GetHistoryEntryById(id); if (Services.Permissions.Authorize(StandardPermissionProvider.ManageScheduleTasks)) { if (historyEntry != null) { _scheduleTaskService.DeleteHistoryEntry(historyEntry); } } return(HistoryList(command, historyEntry.ScheduleTaskId)); }