Esempio n. 1
0
        public static JobTitleData FromEntity(JobTitle jobTitle)
        {
            JobTitleData retVal = new JobTitleData();

            retVal.Id   = jobTitle.id;
            retVal.Name = jobTitle.name;
            return(retVal);
        }
Esempio n. 2
0
        public static List <JobTitleData> FromEntityList(List <JobTitle> jobTitleList)
        {
            List <JobTitleData> retVal = new List <JobTitleData>();

            foreach (JobTitle jobTitle in jobTitleList)
            {
                retVal.Add(JobTitleData.FromEntity(jobTitle));
            }
            return(retVal);
        }