Пример #1
0
        public async Task <IActionResult> Post([FromBody] DrinkViewModel viewModel)
        {
            var result = await drinkService.Add(viewModel);

            return(responseService.GetResponse(result));
        }
 public void Add([FromBody] Drink drink)
 {
     _drinkService.Add(drink);
 }