Пример #1
0
        public async Task <IActionResult> Delete(Guid id)
        {
            var affectedRows = await _mealService.DeleteByIdAsync(id);

            return(affectedRows == 0 ? NotFound() : NoContent() as IActionResult);
        }