Exemplo n.º 1
0
        public ActionResult Create()
        {
            ViewBag.Title = "Novo registro";

            ViewBag.CourseTypeId = new SelectList(courseTypeAppService.GetActive(), "Id", "Identification");
            ViewBag.InstructorId = new SelectList(instructorAppService.GetActive(), "Id", "Identification");

            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            ViewBag.Control = "Index";
            ViewBag.Title   = "Lista de Instrutores Ativos";

            return(View("List", instructorAppService.GetActive()));
        }