public async Task <IActionResult> Under() { var getUnder = new GetUndergraduate(); var under = await getUnder.GetUnderGradDegrees(); var underViewModel = new UndergradViewModel() { UnderGrads = under, Title = "Undergraduate Programs", }; return(View(underViewModel)); }
public async Task <IActionResult> Degrees() { var singleFooter = new GetFooter(); var footer = await singleFooter.GetSimpleFooter(); var getUnder = new GetUndergraduate(); var under = await getUnder.GetUnderGradDegrees(); var getGrad = new GetGraduate(); var grad = await getGrad.GetAllGraduate(); var degreeViewModel = new DegreeViewModel() { FooterInfo = footer, UnderGrads = under, Graduates = grad, Title = "Degree Programs" }; return(View(degreeViewModel)); }