1 public ActionResult Edit(int id, FormCollection collection) 2 { 3 var model = this.YearCheckService.GetYearCheck(id); 4 5 this.TryUpdateModel<YearCheckInfo>(model); 6 model.YearCheckDate = model.YearCheckDate.AddDays(1); 7 model.DealStatus = (int)EnumHelp.DealStatus.End; 8 model.DealTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); 9 model.DealWorker = this.CookieContext.UserName; 10 this.YearCheckService.SaveYearCheck(model); 11 12 return this.RefreshParent(); 13 }