public static Data.Inventorypizzas StoreinventMap(Mods.Inventorypizzas inventpizzas) => new Data.Inventorypizzas { Storeid = inventpizzas.Storeid, Pizzaname = inventpizzas.Pizzaname, Itemamount = inventpizzas.Itemamount, Inventpizzasid = inventpizzas.Inventpizzasid, };
public static Data.Inventorypizzas UpdateMap(PizzaWebApp.Models.Inventorypizzas inventorypizzas) => new Data.Inventorypizzas { Storeid = inventorypizzas.Storeid, Pizzaname = inventorypizzas.Pizzaname, Itemamount = inventorypizzas.Itemamount, Inventpizzasid = inventorypizzas.Inventpizzasid, };
public void Updateinventpizza(Mods.Inventorypizzas inventpizzas) { Data.Inventorypizzas changedpizzainvent = UpdateMap(inventpizzas); _db.Update(changedpizzainvent); Save(); }