public ActionResult DeleteHistoryEntry(int id, GridCommand command)
        {
            var historyEntry = _scheduleTaskService.GetHistoryEntryById(id);

            if (historyEntry != null)
            {
                _scheduleTaskService.DeleteHistoryEntry(historyEntry);
            }

            return(HistoryList(command, historyEntry.ScheduleTaskId));
        }
Esempio n. 2
0
        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));
        }