public PizzaBox.Data.Entity.PizzaOrder Map(PizzaBox.Domain.Models.CustomPizza pizza) { return(new PizzaBox.Data.Entity.PizzaOrder { PizzaType = pizza.Name, PizzaCrust = pizza.Crust, PizzaPrice = pizza.PizzaPrice, PizzaSize = pizza.Size }); }
public PizzaBox.Data.Entity.Pizza Map(PizzaBox.Domain.Models.CustomPizza pizza) { return(new PizzaBox.Data.Entity.Pizza { PizzaId = pizza.PizzaId, OrderId = pizza.OrderId, CrustId = pizza.CrustId, PizzaSizeId = pizza.SizeId, PizzaPrice = pizza.PizzaPrice }); }