public static JobTitleLicense Get(int userID, int jobTitleID, int languageID) { var data = new JobTitleLicense(); data.municipality = JobTitleMunicipalLicense.GetList(userID, jobTitleID, languageID); data.county = JobTitleCountyLicense.GetList(userID, jobTitleID, languageID); data.stateProvince = JobTitleStateProvinceLicense.GetList(userID, jobTitleID, languageID); data.country = JobTitleCountryLicense.GetList(userID, jobTitleID, languageID); return(data); }
public static JobTitleCountyLicense FromDB(dynamic record) { if (record == null) { return(null); } var item = new JobTitleCountyLicense { jobTitleID = record.jobTitleID, licenseCertificationID = record.licenseCertificationID, required = record.required, countyID = record.countyID, countyName = record.countyName, languageID = record.languageID, submitted = record.submitted, optionGroup = record.optionGroup }; item.FillLicenseCertification(); return(item); }