public async Task <IEnumerable <PersonModel> > Get() { var people = await db.GetPeople(); return(people); }
public async Task <IActionResult> OnGet() { People = await _data.GetPeople(); return(Page()); }
public async Task <List <PersonModel> > Get() { return(await _data.GetPeople()); }
public async Task <IActionResult> Index() { var people = await _data.GetPeople(); return(View(people)); }