public bool CheckAddress(string address, string apartmentNo, string zipCode) { connectionFactory = ConnectionHelper.GetConnection(); var context = new DbContext(connectionFactory); var familyRepository = new FamilyRepository(context); return(familyRepository.CheckAddress(address, apartmentNo, zipCode)); }