// GET: EnrollmentController public ActionResult Index() { var models = _enrollment.GetAll(); return(View(models)); }
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)); }