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

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