Example #1
0
        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 JobTitleCountryLicense FromDB(dynamic record)
        {
            if (record == null)
            {
                return(null);
            }
            var item = new JobTitleCountryLicense
            {
                jobTitleID             = record.jobTitleID,
                licenseCertificationID = record.licenseCertificationID,
                required    = record.required,
                countryID   = record.countryID,
                countryname = record.countryname,
                languageID  = record.languageID,
                submitted   = record.submitted,
                optionGroup = record.optionGroup
            };

            item.FillLicenseCertification();
            return(item);
        }