Ejemplo n.º 1
0
        public IActionResult Index()
        {
            var vm = new MinorViewModel()
            {
                Docent = "Marco"
            };

            return(View(vm));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Minors()
        {
            var min = await _getMinors.GetMinorList();

            var minViewModel = new MinorViewModel()
            {
                Minors = min,
                Title  = "Minors"
            };

            return(View(minViewModel));
        }
        public async Task <IActionResult> Minor()
        {
            var getMinor = new GetMinors();
            var ugMinor  = await getMinor.GetUgMinors();

            var minorViewModel = new MinorViewModel()
            {
                Minors = ugMinor,
                Title  = "Undergraduate Minors"
            };

            return(View(minorViewModel));
        }
Ejemplo n.º 4
0
        public async Task <IActionResult> Minors()
        {
            var singleFooter = new GetFooter();
            var footer       = await singleFooter.GetSimpleFooter();

            var getMinor = new GetMinor();
            var minor    = await getMinor.GetAllMinor();

            var minorViewModel = new MinorViewModel()
            {
                FooterInfo = footer,
                Minors     = minor,
                Title      = "Undergraduate Minors"
            };

            return(View(minorViewModel));
        }