public static MeatTopping MapToMeatTopping(MeatToppingDAO meatTopping) { var mt = new MeatTopping(); mt.MeatToppingID = meatTopping.Id; mt.PizzaID = PizzaMapper.MapToPizza(meatTopping.Pizza).PizzaID; mt.MeatID = MeatMapper.MapToMeat(meatTopping.Meat).MeatID; mt.Active = meatTopping.Active; return(mt); }
public static MeatToppingDAO MapToMeatToppingDAO(MeatTopping meatTopping) { var mt = new MeatToppingDAO(); mt.Id = meatTopping.MeatToppingID; mt.Pizza = PizzaMapper.MapToPizzaDAO(meatTopping.Pizza); mt.Meat = MeatMapper.MapToMeatDAO(meatTopping.Meat); mt.Active = meatTopping.Active; return(mt); }