コード例 #1
0
        public void Save(ProductSingleItem item)
        {
            var productSingle = Db.Set <tblProductSingle>().Single(x => x.Id == item.Id);

            productSingle.State     = item.StateId;
            productSingle.BuyPrice  = item.BuyPrice;
            productSingle.SellPrice = item.SellPrice;
            productSingle.IsNew     = item.IsNew;
            productSingle.Notes     = item.Notes;

            Db.SaveChanges();
        }
コード例 #2
0
        public void Save(ProductSingleItem item)
        {
            var productSingle = Db.Set<tblProductSingle>().Single(x => x.Id == item.Id);

            productSingle.State = item.StateId;
            productSingle.BuyPrice = item.BuyPrice;
            productSingle.SellPrice = item.SellPrice;
            productSingle.IsNew = item.IsNew;
            productSingle.Notes = item.Notes;

            Db.SaveChanges();
        }
コード例 #3
0
 public JsonResult SaveProductSingle(ProductSingleItem item)
 {
     Service.ProductSingle.Save(item);
     return SuccessJsonResult();
 }
コード例 #4
0
 public JsonResult SaveProductSingle(ProductSingleItem item)
 {
     Service.ProductSingle.Save(item);
     return(SuccessJsonResult());
 }