public IActionResult Remover(int id) { var email = User.Identity.Name; if (email != null) { _estacionamentoDAO.Remover(id); return(RedirectToAction("Index", "Estacionamento")); } return(RedirectToAction("Login", "Usuario")); }
public IActionResult Remover(int id) { _estacionamentoDAO.Remover(id); return(RedirectToAction("Index", "Estacionamento")); }