Example #1
0
        // GET: EnrollmentController
        public ActionResult Index()
        {
            var models = _enrollment.GetAll();

            return(View(models));
        }
Example #2
0
        public async Task <IEnumerable <Enrollment> > Get()
        {
            var models = await _enrollment.GetAll();

            return(models);
        }
        // GET: Enrollment
        public async Task <ActionResult> Index()
        {
            var models = await _enrollment.GetAll();

            return(View(models));
        }