public ActionResult Delete(int ItemId)
 {
     expensesDataAccessLayer.DeleteExpense(ItemId);
     return(RedirectToAction("Index"));
 }
Exemplo n.º 2
0
 public IActionResult Delete(int id)
 {
     expDataAccess.DeleteExpense(id);
     return(RedirectToAction(nameof(Index)));
 }