Exemple #1
0
        public async Task <IActionResult> GetMinors()
        {
            var allMinors = await _minorsRepository.GetAllMinors();

            var sortedFaculty   = allMinors.OrderBy(f => f.name);
            var MinorsViewModel = new MinorsViewModel()
            {
                Minors = allMinors.ToList(),
                Title  = "Minors and Immersions"
            };

            return(View(MinorsViewModel));
        }
        public async Task <IActionResult> GetMinors()
        {
            var allMinors = await _minorRepository.GetAllMinors();

            //var sortedFaculty = allFaculty.OrderBy(f => f.username);
            var minorsViewModel = new MinorsViewModel()
            {
                Minors = allMinors.ToList(),
                Title  = "UnderGraduation Minor List"
            };

            return(View(minorsViewModel));
        }