Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static JobTitleMunicipalLicense FromDB(dynamic record)
        {
            if (record == null)
            {
                return(null);
            }
            var item = new JobTitleMunicipalLicense
            {
                jobTitleID             = record.jobTitleID,
                licenseCertificationID = record.licenseCertificationID,
                required         = record.required,
                municipalityID   = record.municipalityID,
                municipalityName = record.municipalityName,
                languageID       = record.languageID,
                submitted        = record.submitted,
                optionGroup      = record.optionGroup
            };

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