// GET: Student
        public async Task <ActionResult> Index()
        {
            var studentDisplayModel = new StudentDisplayModel
            {
                Students = await _studentOrchestrator.GetAllStudents()
            };

            return(View(studentDisplayModel));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            var studentOrchestrator = new StudentOrchestrator();

            var model = new DMACCModel
            {
                Students = studentOrchestrator.GetAllStudents()
            };

            return(View(model));
        }
Esempio n. 3
0
        public List <StudentViewModel> GetAllStudents()
        {
            var students = _studentOrchestrator.GetAllStudents();

            return(students);
        }
Esempio n. 4
0
        public async Task <List <StudentViewModel> > GetAllStudents()
        {
            var students = await _studentOrchestrator.GetAllStudents();

            return(students);
        }