Пример #1
0
        public ActionResult <IEnumerable <PersonReadDto> > GetAllPersons()
        {
            var personItems = _repository.GetAllPersons();

            return(Ok(_mapper.Map <IEnumerable <PersonReadDto> >(personItems)));
        }
Пример #2
0
        public IActionResult Index()
        {
            var personen = _personRepository.GetAllPersons();

            return(View(personen));
        }