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