public async Task <IActionResult> Get() { var levels = await _levelRepositoryAsync.GetAllAsync(); return(Ok(levels)); }
// public IActionResult Index() // { // var classes = classRepositoryAsync.GetAllAsync(); // return View(classes); // } public async Task <IActionResult> Index() { var classes = await levelRepositoryAsync.GetAllAsync(); return(View(classes)); }