Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            if (!_exameAppService.Excluir(id))
            {
                TempData["Mensagem"] = "Erro";

                return(null);
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }
Example #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            if (Session["usuario"] == null)
            {
                return(RedirectToAction("Login", "Usuarios"));
            }
            if (!_exameAppService.Excluir(id))
            {
                TempData["Mensagem"] = "Erro";

                return(null);
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }