public static VegetableTopping MapToVegetableTopping(VegetableToppingDAO vegetableTopping) { var vt = new VegetableTopping(); vt.VegetableToppingID = vegetableTopping.Id; vt.PizzaID = PizzaMapper.MapToPizza(vegetableTopping.Pizza).PizzaID; vt.VegetableID = VegetableMapper.MapToVegetable(vegetableTopping.Vegetable).VegetableID; vt.Active = vegetableTopping.Active; return(vt); }
public static VegetableToppingDAO MapToVegetableToppingDAO(VegetableTopping vegetableTopping) { var vt = new VegetableToppingDAO(); vt.Id = vegetableTopping.VegetableToppingID; vt.Pizza = PizzaMapper.MapToPizzaDAO(vegetableTopping.Pizza); vt.Vegetable = VegetableMapper.MapToVegetableDAO(vegetableTopping.Vegetable); vt.Active = vegetableTopping.Active; return(vt); }