Exemplo n.º 1
0
        public async Task <IEnumerable <PersonModel> > Get()
        {
            var people = await db.GetPeople();

            return(people);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> OnGet()
        {
            People = await _data.GetPeople();

            return(Page());
        }
 public async Task <List <PersonModel> > Get()
 {
     return(await _data.GetPeople());
 }
Exemplo n.º 4
0
        public async Task <IActionResult> Index()
        {
            var people = await _data.GetPeople();

            return(View(people));
        }