//private readonly ILogger<HomeController> _logger; //public HomeController(ILogger<HomeController> logger) //{ // _logger = logger; //} public async Task <IActionResult> IndexAsync() { /*var getAbout = new GetAbout(); * var abt = await getAbout.GetAboutData(); * var abtViewModel = new AboutViewModel() * { * About = abt, * Title = "All About Us" * } * return View(abtViewModel);*/ var modelAbtDegree = new EmployandAboutViewModel(); var getAbout = new GetAbout(); var degreeStat = new GetDegreeStats(); var employIntro = new GetEmployIntro(); var employersData = new GetEmployersData(); var careerData = new GetCareerData(); var employTableData = new GetEmployerTableData(); var coopTableData = new GetCoopTableData(); modelAbtDegree.About = await getAbout.GetAboutData(); modelAbtDegree.DegreeStats = await degreeStat.GetStatData(); modelAbtDegree.EmployIntro = await employIntro.GetEmployStatData(); modelAbtDegree.Employers = await employersData.GetEmployersInfo(); modelAbtDegree.Careers = await careerData.GetCareerInfoData(); modelAbtDegree.EmploymentTable = await employTableData.GetEmployerTable(); modelAbtDegree.CoopTable = await coopTableData.GetCoopTable(); return(View(modelAbtDegree)); }
public async Task <IActionResult> Index() { var getAbout = new GetAbout(); var allAbout = await getAbout.About(); var aboutViewModel = new AboutViewModel() { About = allAbout, Title = "About iSchool" }; return(View(aboutViewModel)); }
/* * Responsible for creating the Index page when loaded in * This data includes information on faculty that is provided by the API */ public async Task <IActionResult> Index() { var getAbout = new GetAbout(); var about = await getAbout.GetAboutInfo(); var homeViewModel = new HomeViewModel() { About = about, Title = "About Us" }; return(View(homeViewModel)); }
//About Controller public async Task <IActionResult> About() { var getAbout = new GetAbout(); var about = await getAbout.GetAboutData(); var aboutViewModel = new AboutViewModels() { About = about, Title = "About RIT Information Technologies", aboutTitle = about.title, aboutDescription = about.description, aboutQuote = about.quote, aboutQuoteAuthor = about.quoteAuthor }; return(View(aboutViewModel)); }
public async Task <IActionResult> Index() { var singleFooter = new GetFooter(); var footer = await singleFooter.GetSimpleFooter(); var singleAbout = new GetAbout(); var about = await singleAbout.GetSimpleAbout(); var homeViewModel = new IndexViewModel() { FooterInfo = footer, AboutInfo = about, Title = "Rochester Institute of Technology" }; return(View(homeViewModel)); }