Beispiel #1
0
        public ActionResult Update(WorksViewModel user)
        {
            WorksBO newUser = AutoMapper <WorksViewModel, WorksBO> .Map(user);

            workServ.Update(newUser);
            return(RedirectToActionPermanent("Index", "Works"));
        }
Beispiel #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Maticsoft.Model.Works model)
 {
     return(dal.Update(model));
 }