Exemplo n.º 1
0
        // GET: /Timetable/Create
        public async Task <ActionResult> Create()
        {
            List <Course> lstCourses = await _logicCourse.GetCourses();

            List <Semester> lstSemester = await _attendanceRepo.GetSemesters();

            ViewBag.CourseId   = new SelectList(lstCourses, "Id", "Name");
            ViewBag.SemesterId = new SelectList(lstSemester, "Id", "Name");
            return(View());
        }
Exemplo n.º 2
0
 public IActionResult Index(int CourseId)
 {
     StudentInCourseVM         = new StudentInCourseListViewModel();
     StudentInCourseVM.Courses = _courseLogic.GetCourses();
     //StudentInCourseVM.Students = _courseLogic.GetStudentsInCourse(CourseId);
     return(View(StudentInCourseVM));
 }
Exemplo n.º 3
0
        // GET: /Timetable/Create
        public async Task <ActionResult> Create()
        {
            List <Course> lstCourses = await _logicCourse.GetCourses();

            List <Module> lstModules = await _logicModule.GetModules();

            List <Teacher> lstTeachers = await _logicTeacher.GetTeachers();

            ViewBag.CourseId  = new SelectList(lstCourses, "Id", "Name");
            ViewBag.ModuleId  = new SelectList(lstModules, "Id", "Name");
            ViewBag.TeacherId = new SelectList(lstTeachers, "Id", "Name");

            //
            List <Semester> lstSemester = await _repo.GetSemesters();

            ViewBag.SemesterId = new SelectList(lstSemester, "Id", "Name");
            return(View());
        }
        // GET: /Course/
        public async Task <ActionResult> Index()
        {
            List <Course> lst = await _logic.GetCourses();

            return(View(lst));
        }