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(); }
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(); }
public JsonResult SaveProductSingle(ProductSingleItem item) { Service.ProductSingle.Save(item); return SuccessJsonResult(); }
public JsonResult SaveProductSingle(ProductSingleItem item) { Service.ProductSingle.Save(item); return(SuccessJsonResult()); }