// GET: Student public async Task <ActionResult> Index() { var studentDisplayModel = new StudentDisplayModel { Students = await _studentOrchestrator.GetAllStudents() }; return(View(studentDisplayModel)); }
public ActionResult Index() { var studentOrchestrator = new StudentOrchestrator(); var model = new DMACCModel { Students = studentOrchestrator.GetAllStudents() }; return(View(model)); }
public List <StudentViewModel> GetAllStudents() { var students = _studentOrchestrator.GetAllStudents(); return(students); }
public async Task <List <StudentViewModel> > GetAllStudents() { var students = await _studentOrchestrator.GetAllStudents(); return(students); }