Exemplo n.º 1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var shoppingList = await _shoppingListService.GetById(id);

            await _shoppingListService.Delete(shoppingList);

            return(RedirectToAction(nameof(Index)));
        }
Exemplo n.º 2
0
 public void Delete(long id)
 {
     _log.Debug("shoppingListId={0}", id);
     _shoppingListService.Delete(id);
 }
        public IHttpActionResult Delete([FromUri] string drink)
        {
            _shoppingListService.Delete(drink);

            return(Ok());
        }