Example #1
0
        public async Task <IActionResult> DeleteTask(PlanManageViewModel model)
        {
            if (model.EditingTaskId == null)
            {
                return(StatusCode(500, "没有发送要删除的任务Id"));
            }

            await _planService.DeletePlanTerms(model.EditingTaskId.Value);

            return(RedirectToAction(nameof(Manage), new { id = model.PlanId }));
        }