/// <summary> /// This method simply maps the pizza to dto object /// </summary> /// <returns>List of all the pizzas</returns> public List <MenuDto> GetAllPizzas() { var ListMenu = pizzaDAL.GetAllPizzas(); List <MenuDto> ListMenuDto = new List <MenuDto>(); foreach (var item in ListMenu) { ListMenuDto.Add(mapper.MenuMapper(item)); } return(ListMenuDto); }