示例#1
0
        public IActionResult Remover(int id)
        {
            var email = User.Identity.Name;

            if (email != null)
            {
                _estacionamentoDAO.Remover(id);
                return(RedirectToAction("Index", "Estacionamento"));
            }
            return(RedirectToAction("Login", "Usuario"));
        }
示例#2
0
 public IActionResult Remover(int id)
 {
     _estacionamentoDAO.Remover(id);
     return(RedirectToAction("Index", "Estacionamento"));
 }