private static PapaBobs.DTO.PizzaPriceDTO convertToDTO(PizzaPrice pizzaPrice) { var dto = new DTO.PizzaPriceDTO(); dto.SmallSizeCost = pizzaPrice.SmallSizeCost; dto.MediumSizeCost = pizzaPrice.MediumSizeCost; dto.LargeSizeCost = pizzaPrice.LargeSizeCost; dto.ThickCrustCost = pizzaPrice.ThickCrustCost; dto.ThinCrustCost = pizzaPrice.ThinCrustCost; dto.RegularCrustCost = pizzaPrice.RegularCrustCost; dto.SausageCost = pizzaPrice.SausageCost; dto.PepperoniCost = pizzaPrice.PepperoniCost; dto.OnionsCost = pizzaPrice.OnionsCost; dto.GreenPeppersCost = pizzaPrice.GreenPeppersCost; return(dto); }
private static DTO.PizzaPriceDTO convertToDTO(PizzaPrice pizzaPrice) { DTO.PizzaPriceDTO pizzaPriceDTO = new DTO.PizzaPriceDTO(); pizzaPriceDTO.SmallSizeCost = pizzaPrice.SmallSizeCost; pizzaPriceDTO.MediumSizeCost = pizzaPrice.MediumSizeCost; pizzaPriceDTO.LargeSizeCost = pizzaPrice.LargeSizeCost; pizzaPriceDTO.RegularCrustCost = pizzaPrice.RegularCrustCost; pizzaPriceDTO.ThinCrustCost = pizzaPrice.ThinCrustCost; pizzaPriceDTO.ThickCrustCost = pizzaPrice.ThickCrustCost; pizzaPriceDTO.SausageCost = pizzaPrice.SausageCost; pizzaPriceDTO.PepperoniCost = pizzaPrice.PepperoniCost; pizzaPriceDTO.OnionsCost = pizzaPrice.OnionsCost; pizzaPriceDTO.GreenPeppersCost = pizzaPrice.GreenPeppersCost; return(pizzaPriceDTO); }