public ActionResult Update(WorksViewModel user) { WorksBO newUser = AutoMapper <WorksViewModel, WorksBO> .Map(user); workServ.Update(newUser); return(RedirectToActionPermanent("Index", "Works")); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Maticsoft.Model.Works model) { return(dal.Update(model)); }