示例#1
0
        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);
        }
示例#2
0
        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);
        }