public async Task <IActionResult> List(int apartmentId) { var items = (await _repository.ListAsync(apartmentId)).Select(GetResidentDTO.FromResident); return(Ok(items)); }