Ejemplo n.º 1
0
 public static PizzaWebApp.Models.Pizzastore StoreMap(Data.Pizzastore pizzastore) => new PizzaWebApp.Models.Pizzastore
 {
     Storeid    = pizzastore.Storeid,
     Name       = pizzastore.Name,
     Locationid = pizzastore.Locationid,
     Location   = StorelocalMap(pizzastore.Location),
 };
Ejemplo n.º 2
0
 public static PizzaWebApp.Models.Pizzastore Map(Data.Pizzastore pizzastore) => new PizzaWebApp.Models.Pizzastore
 {
     Storeid         = pizzastore.Storeid,
     Name            = pizzastore.Name,
     Locationid      = pizzastore.Locationid,
     Location        = Map(pizzastore.Location),
     History         = Map(pizzastore.History).ToList(),
     Inventorysides  = Map(pizzastore.Inventorysides).ToList(),
     Inventorypizzas = Map(pizzastore.Inventorypizzas).ToList(),
     Inventorydrinks = Map(pizzastore.Inventorydrinks).ToList(),
     Orderdetails    = Map(pizzastore.Orderdetails).ToList(),
 };
 public static Library.Pizzastore Map(Pizzastore pizzastore) => new Library.Pizzastore
 {
     Storeid    = pizzastore.Storeid,
     Name       = pizzastore.Name,
     Locationid = pizzastore.Locationid,
     //   Location = Map(pizzastore.Location),
     //  History = Map(pizzastore.History).ToList(),
     //   Inventorysides = Map(pizzastore.Inventorysides).ToList(),
     //    Inventorypizzas = Map(pizzastore.Inventorypizzas).ToList(),
     //    Inventorydrinks = Map(pizzastore.Inventorydrinks).ToList(),
     //  Orderdetails = Map(pizzastore.Orderdetails).ToList(),
 };