public IActionResult RemoverDoCarrinho(int ID) { var lanche = _lancheRepository.Lanches.FirstOrDefault(p => p.ID == ID); if (lanche != null) { _carrinhoCompra.RemoveCarrinho(lanche); } return(RedirectToAction("Index")); }
public IActionResult RemoverDoCarrinho(int ID) { var lanche = _lancheRepository.Lanches.FirstOrDefault(p => p.ID == ID); if (lanche != null) { _carrinhoCompra.RemoveCarrinho(lanche); } return(RedirectToAction("Index")); }