/// <summary>
 /// 修改数据
 /// </summary>
 /// <param name="userInfo"></param>
 /// <returns></returns>
 public ActionResult EditInfo(UserInfo userInfo)
 {
     userInfoService.UpdateEntity(userInfo);
     return Content("ok");
 }
Esempio n. 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(BookShop.Model.UserInfo model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 添加数据
 /// </summary>
 /// <returns></returns>
 public ActionResult AddInfo(UserInfo userInfo)
 {
     userInfo.RegTime = DateTime.Now;
     userInfoService.AddEntity(userInfo);
     return Content("ok");
 }
Esempio n. 4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(BookShop.Model.UserInfo model)
 {
     return(dal.Add(model));
 }