Пример #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);
        }
Пример #2
0
        public static JobTitleStateProvinceLicense FromDB(dynamic record)
        {
            if (record == null)
            {
                return(null);
            }
            var item = new JobTitleStateProvinceLicense
            {
                jobTitleID             = record.jobTitleID,
                licenseCertificationID = record.licenseCertificationID,
                required          = record.required,
                stateProvinceID   = record.stateProvinceID,
                stateProvinceName = record.stateProvinceName,
                languageID        = record.languageID,
                submitted         = record.submitted,
                optionGroup       = record.optionGroup
            };

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