示例#1
0
 //添加退货
 public ActionResult getaddth(th hh)
 {
     hh.ckid   = 4;
     hh.Status = 0;
     Debug.Write("创建用户:" + hh.CreateUser);
     return(Json(Yservice.addth(hh), JsonRequestBehavior.AllowGet));
 }
示例#2
0
文件: Ydao.cs 项目: githubF6/Store
        //添加退货
        public static int addth(th hh)
        {
            warehouseEntities entities = new warehouseEntities();

            entities.th.Add(hh);
            return(entities.SaveChanges());
        }
示例#3
0
        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>
示例#4
0
 //添加退货
 public static int addth(th hh)
 {
     return(dao.Ydao.addth(hh));
 }