//添加退货 public ActionResult getaddth(th hh) { hh.ckid = 4; hh.Status = 0; Debug.Write("创建用户:" + hh.CreateUser); return(Json(Yservice.addth(hh), JsonRequestBehavior.AllowGet)); }
//添加退货 public static int addth(th hh) { warehouseEntities entities = new warehouseEntities(); entities.th.Add(hh); return(entities.SaveChanges()); }
public IHttpResponse AllGames(IHttpSession session) { if (!AdminAccess(session)) { return(new BadRequestResponse()); } IList <GameListingViewModel> gameModels = this.GameService.All().ToList(); StringBuilder tableHtml = new StringBuilder(); for (int i = 0; i < gameModels.Count; i++) { tableHtml.AppendLine(@$ " <tr> <th scope=" "row" ">{i + 1}</th>
//添加退货 public static int addth(th hh) { return(dao.Ydao.addth(hh)); }