public static void Update(AssistenceInfo infoToUpdate, UsaAssistenceInfo sourceInfo) { infoToUpdate.Email = sourceInfo.Email; infoToUpdate.Fax = sourceInfo.Fax; infoToUpdate.Globe = sourceInfo.Globe; infoToUpdate.Phone = sourceInfo.Phone; infoToUpdate.Title = sourceInfo.Name; }
public static AssistenceInfo Create(UsaAssistenceInfo sourceInfo) { var info = new AssistenceInfo { Email = sourceInfo.Email, Fax = sourceInfo.Fax, Globe = sourceInfo.Globe, Phone = sourceInfo.Phone, Title = sourceInfo.Name }; return(info); }
private UsaCountryInfo PopulateCountryInfoModel(HtmlDocument xml, List <HtmlNode> ddElements) { IEnumerable <CountryRepresentativeDepartment> representatives = ParseEmbassiesAndConsules(ddElements); string generalInformation = GetString(ddElements[1], "ParseGeneralInformation"); string hagueAbductionConvention = GetString(ddElements[2], "ParseHagueAbduction"); string @return = GetString(ddElements[3], "Return"); string access = GetString(ddElements[4], "Visitation/Access"); string attorney = GetString(ddElements[5], "Retaining an Attorney"); string mediaton = GetString(ddElements[6], "Mediation"); UsaAssistenceInfo assistanceInfo = GenerateAssistenceInfo(xml); return(new UsaCountryInfo() { Representatives = representatives, GeneralInformation = generalInformation, HagueAbductionConvention = hagueAbductionConvention, Return = @return, Access = access, Attorney = attorney, Mediaton = mediaton, AssistanceInfo = assistanceInfo }); }