Exemple #1
0
        public async Task <ActionResult <Dish> > PostDish(Dish item)
        {
            _context.Dish.Add(item);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetDish), new { id = item.Id }, item));
        }