public IEnumerable <ResidentEntity> GetAll()
 {
     try
     {
         return(mapper.MapToResidentEntity(MockResidentDBContext.Residents.ToList()));
     }
     catch (Exception)
     {
         logger.LogError("Error occoured in ResidentRepository.GetAll");
         throw;
     }
 }