コード例 #1
0
        public async Task <Pizza> GetPizzaWithIngredientsAsync(int id)
        {
            var spec = new PizzaWithIngredientsSpecification(id);

            return(await GetByIdAsync(spec));
        }
コード例 #2
0
        public async Task <IReadOnlyList <Pizza> > GetPizzasWithIngredientsAsync()
        {
            var spec = new PizzaWithIngredientsSpecification();

            return(await GetAsync(spec));
        }