示例#1
0
        public async Task <IngredientList> GetIngredientListAsync()
        {
            var ingredients = new IngredientList
            {
                Flavour  = await _ingredientsRepository.GetFlavours(),
                Frosting = await _ingredientsRepository.GetFrostings(),
                Topping  = await _ingredientsRepository.GetToppings()
            };

            return(ingredients);
        }