/// <summary> /// 编辑 /// </summary> /// <returns></returns> public ActionResult Edits(ScheduleTaskInfoRequest request) { GetListItemByEnum(); var model = _scheduleTaskConfigService.FindInfoById(request.Id); if (model == null) { return(GoErrorPage("定时任务信息不存在或已被删除")); } return(View(model)); }
/// <summary> /// 详情 /// </summary> /// <param name="request"></param> /// <returns></returns> public ActionResult Detail(ScheduleTaskInfoRequest request) { GetListItemByEnum(); if (request?.Id <= 0) { return(GoErrorPage("参数传递错误")); } var viewModel = _scheduleTaskConfigService.FindInfoById(request.Id); if (viewModel == null) { return(GoErrorPage("定时任务信息不存在或已被删除")); } return(View(viewModel)); }