コード例 #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 Tipos de Curso";

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