public async Task <IActionResult> Finsh(FinshOrRestoreModel model) { if (ModelState.IsValid) { var investigation = await _investigationManager.FindByIdAsync(model.Id); if (investigation == null) { return(NotFound(model.Id)); } await _investigationManager.CompleteAsync(investigation); Notifier.Success($"你已成功完成了“{investigation.Name}”的意向调查记录!"); ////通知其审批管理员 //var auditUsers = await _resumeManager.ResumeAuditSettings.ToListAsync(); //var notification = new NotifyEntry() //{ // Content = $"我完成了一份意向调查,<a href=\"/Investigation/View/{investigation.Id}\">查看意向调查</a>" //}; //foreach (var auditUser in auditUsers) //{ // notification.Receivers.Add(auditUser.UserId); //} //await Notifier.NotifyAsync(notification); return(RedirectToAction(nameof(List))); } return(View(model)); }