public async Task <IActionResult> GetById(int id)
        {
            var resident = await _repository.GetByIdAsync(id);

            if (resident == null)
            {
                return(NotFound("Resident not found"));
            }

            return(Ok(GetResidentDTO.FromResident(resident)));
        }