示例#1
0
        public static IEnumerable <GeneralLanguage> GeneralLanguages(IEnumerable <Models.CommonLanguage> entities)
        {
            var models = new List <GeneralLanguage>();

            foreach (var entity in entities)
            {
                models.Add(GeneralMappings.GeneralLanguage(entity));
            }
            return(models);
        }
示例#2
0
        public static IEnumerable <GuardianRelationship> GuardianRelationships(IEnumerable <Models.GuardianRelationship> entities)
        {
            var models = new List <GuardianRelationship>();

            foreach (var entity in entities)
            {
                models.Add(GeneralMappings.GuardianRelationship(entity));
            }
            return(models);
        }
示例#3
0
        public static ProviderLanguage ProviderLanguage(Models.ProviderLanguage entity)
        {
            var model          = new ProviderLanguage();
            var commonLanguage = GeneralMappings.GeneralLanguage(entity.ISO639_2_Lang);

            model.ProviderLanguageID          = entity.ID;
            model.ProviderLanguageDateCreated = entity.DateCreated;
            model.ID          = entity.LanguageID;
            model.Code        = commonLanguage.Code;
            model.Description = commonLanguage.Description;

            return(model);
        }