public async Task <ActionResult> Index(GetAllPeopleInput input)
        {
            var output = await _personService.GetAll(input);

            var model = new IndexViewModel(output.Items);

            return(View(model));
        }
        public async Task <ListResultDto <PersonListDto> > GetAll(GetAllPeopleInput input)
        {
            var people = await _personRepository
                         .GetAll()
                         .WhereIf(input.State.HasValue, p => p.State == input.State.Value)
                         .ToListAsync();

            return(new ListResultDto <PersonListDto>(
                       ObjectMapper.Map <List <PersonListDto> >(people)
                       ));
        }