예제 #1
0
        public async Task <IActionResult> Under()
        {
            var under = await _getUndergraduate.GetUnderGradDegrees();

            var underViewModel = new UndergradViewModel()
            {
                UnderGrads = under,
                Title      = "Undergraduate Programs"
            };

            return(View(underViewModel));
        }
        public async Task <IActionResult> GetUndergraduate()
        {
            var allUnderGraduate = await _underGraduateRepository.GetAllUnderGraduate();

            var sortedUnderGraduate = allUnderGraduate.OrderBy(f => f.degreeName);
            var UndergradViewModel  = new UndergradViewModel()
            {
                UnderGrads = allUnderGraduate.ToList(),
                Title      = "UnderGraduate Degree"
            };

            return(View(UndergradViewModel));
        }
예제 #3
0
        public async Task <IActionResult> Under()
        {
            var underGradMajors = await _undergradRepository.GetUnderGradDegrees();

            var underGradMinors = await _undergradRepository.GetUnderGradMinors();

            var underViewModel = new UndergradViewModel()
            {
                UnderGradMajors = underGradMajors.ToList(),
                UnderGradMinors = underGradMinors.ToList(),
                Title           = "Undergraduate Programs"
            };

            return(View(underViewModel));
        }
예제 #4
0
        public async Task <IActionResult> Under()
        {
            var getUnder = await _undergradRepo.GetAllUnderGrad();

            var getGrad = await _gradRepo.GetAllGrad();

            var getMinor = await _minorRepository.GetAllMinor();

            var underViewModel = new UndergradViewModel();

            /*{
             *  UnderGrads = under,
             *  Title = "Undergraduate Programs"
             * };*/
            underViewModel.UnderGrads = getUnder.ToList();
            underViewModel.Graduate   = getGrad.ToList();
            underViewModel.UgMinor    = getMinor.ToList();
            return(View(underViewModel));
        }