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