public ActionResult <IEnumerable <PersonReadDto> > GetAllPersons() { var personItems = _repository.GetAllPersons(); return(Ok(_mapper.Map <IEnumerable <PersonReadDto> >(personItems))); }
public IActionResult Index() { var personen = _personRepository.GetAllPersons(); return(View(personen)); }