public virtual IActionResult List(ScheduleTaskSearchModel searchModel) { //prepare model ScheduleTaskListModel model = _scheduleTaskModelFactory.PrepareScheduleTaskListModel(searchModel); return(Json(model)); }
public virtual IActionResult List(ScheduleTaskSearchModel searchModel) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageScheduleTasks)) { return(AccessDeniedDataTablesJson()); } //prepare model var model = _scheduleTaskModelFactory.PrepareScheduleTaskListModel(searchModel); return(Json(model)); }