Пример #1
0
        // GET: Disciplina/Details/5
        public ActionResult Details(int id = 0)
        {
            var detalhesDisciplinaId = appDisciplina.ListarPorId(id.ToString());

            if (id == 0 || detalhesDisciplinaId == null)
            {
                ExibeMensagem('D', 52);

                return(RedirectToAction("Index"));
            }
            return(View(detalhesDisciplinaId));
        }
Пример #2
0
        public ActionResult Excluir(int id)
        {
            var appDisciplina = new DisciplinaAplicacao();
            var disciplina    = appDisciplina.ListarPorId(id);

            if (disciplina == null)
            {
                return(HttpNotFound());
            }

            return(View(disciplina));
        }