public static List <BurgerOTD> MapBurgerList(List <BurgerDTO> BurgerList) { List <BurgerOTD> BurgersOTD = new List <BurgerOTD>(); foreach (BurgerDTO BurgerDTO in BurgerList) { BurgerOTD newBurgerOTD = MapBurger(BurgerDTO); BurgersOTD.Add(newBurgerOTD); } return(BurgersOTD); }
public static BurgerOTD MapBurger(BurgerDTO Burger) { BurgerOTD BurgerOTD = new BurgerOTD { name = Burger.name, price = Burger.price, description = Burger.description, discount = Burger.discount, image = Burger.image }; return(BurgerOTD); }