Exemple #1
0
 public void Delete(int id)
 {
     _service.DeleteDrink(id);
 }
Exemple #2
0
        public async Task <IActionResult> DeleteDrink(int id)
        {
            var result = await _drinkService.DeleteDrink(id);

            return(new OkObjectResult(ApiResponse.Delete(result)));
        }