public async Task <IActionResult> Index() { var about = await _getAbout.GetAllAbout(); var aboutViewModel = new AboutViewModel() { About = about, Title = "About Page" }; return(View(aboutViewModel)); }
public async Task <IActionResult> GetAbout() { var allAbout = await _aboutRepository.GetAllAbout(); // var sortedFaculty = allFaculty.OrderBy(f => f.username); var aboutViewModel = new AboutViewModel() { About = allAbout.ToList(), Title = "Welcome to RIT's iSchool, Home Page" }; return(View(aboutViewModel)); }
public async Task <IActionResult> Index() { var allAbout = await _AboutRepository.GetAllAbout(); var sortedAbout = allAbout.OrderBy(f => f.title); var AboutViewModel = new AboutViewModel() { About = allAbout.ToList(), Title = "About" }; return(View(AboutViewModel)); }