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);
        }
        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);
        }
        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);
        }