Exemple #1
0
        public async Task <IActionResult> Index()
        {
            var persons = await Respository.GetPersonsAsync();

            return(View(persons));
        }
        public async Task <IEnumerable <Person> > Get()
        {
            var people = await Repository.GetPersonsAsync();

            return(people);
        }