public IActionResult GetResidents() { var objList = _reRepo.GetResidents(); var objDto = new List <ResidentUpdateDto>(); foreach (var obj in objList) { objDto.Add(_mapper.Map <ResidentUpdateDto>(obj)); } return(Ok(objDto)); }