Ejemplo n.º 1
0
        // GET: EnrollmentController
        public ActionResult Index()
        {
            var models = _enrollment.GetAll();

            return(View(models));
        }
Ejemplo n.º 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));
        }