Пример #1
0
 public Data.Orderedpizzas CreateMap(Mods.Orderedpizzas pizza) => new Data.Orderedpizzas
 {
     Orderedpizzasid = pizza.Orderedpizzasid,
     Orderid         = pizza.Orderid,
     Pizzaname       = pizza.Pizzaname,
     Pizzaqty        = pizza.Pizzaqty,
     Pizzascost      = pizza.Pizzascost,
 };
Пример #2
0
 public static Data.Orderedpizzas Map(PizzaWebApp.Models.Orderedpizzas orderedpizzas) => new Data.Orderedpizzas
 {
     Orderedpizzasid     = orderedpizzas.Orderedpizzasid,
     Orderid             = orderedpizzas.Orderid,
     Pizzaname           = orderedpizzas.Pizzaname,
     Pizzaqty            = orderedpizzas.Pizzaqty,
     Pizzascost          = orderedpizzas.Pizzascost,
     PizzanameNavigation = Map(orderedpizzas.PizzanameNavigation),
     Order = Map(orderedpizzas.Order),
 };
Пример #3
0
 public void Createpizzaorder(Mods.Orderedpizzas pizzaorder)
 {
     _db.Add(CreateMap(pizzaorder));
     Save();
 }