// GET: Person
        public async Task <ActionResult> Index()
        {
            var personDisplayModel = new PersonDisplayModel
            {
                Persons = await _personOrchestrator.GetAllPersons()
            };

            return(View(personDisplayModel));
        }
Exemple #2
0
        public Task <List <PersonViewModel> > GetAllPersons()
        {
            var persons = _personOrchestrator.GetAllPersons();

            return(persons);
        }