public async Task <IActionResult> DeleteConfirmed(int id) { var shoppingList = await _shoppingListService.GetById(id); await _shoppingListService.Delete(shoppingList); return(RedirectToAction(nameof(Index))); }
public void Delete(long id) { _log.Debug("shoppingListId={0}", id); _shoppingListService.Delete(id); }
public IHttpActionResult Delete([FromUri] string drink) { _shoppingListService.Delete(drink); return(Ok()); }