public async Task <IActionResult> Employment() { var getEmp = new GetEmployment(); var Empl = await getEmp.GetEmpTable(); var gradViewModel = new EmploymentViewModel() { Emp = Empl, Title = "Employment History" }; return(View(gradViewModel)); }
public async Task <IActionResult> Employment() { var singleFooter = new GetFooter(); var footer = await singleFooter.GetSimpleFooter(); var getEmployment = new GetEmployment(); var employment = await getEmployment.GetAllEmployment(); var employmentViewModel = new EmploymentViewModel() { FooterInfo = footer, Introduction = employment.introduction, DegreeStatistics = employment.degreeStatistics, Employers = employment.employers, Careers = employment.careers, CoopTable = employment.coopTable, EmploymentTable = employment.employmentTable, Title = "Employment Information" }; return(View(employmentViewModel)); }