Beispiel #1
0
        public async Task <PizzaModel> GetPizzaWithIngredientsAsync(int id)
        {
            Pizza pizza = await _pizzaRepo.GetPizzaWithIngredientsAsync(id);

            PizzaModel pizzaModel = new PizzaModel();

            pizzaModel = _mapper.Map(pizza, pizzaModel);

            return(pizzaModel);
        }