예제 #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());
        }
예제 #2
0
        public ActionResult Index()
        {
            ViewBag.Control = "Index";
            ViewBag.Title   = "Lista de Instrutores Ativos";

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