Example #1
0
        public TheoryLanguages MapLanguage(DbTheoryLanguages dbTheoryLanguage)
        {
            var language = new TheoryLanguages
            {
                CountryCode = dbTheoryLanguage.CountryCode,
                Name        = dbTheoryLanguage.Name
            };

            return(language);
        }
Example #2
0
        public IEnumerable <TheoryLanguages> MapLanguages(IEnumerable <DbTheoryLanguages> dbTheoryLanguages)
        {
            var languages = new List <TheoryLanguages>();

            foreach (var language in dbTheoryLanguages)
            {
                var theoryLanguage = new TheoryLanguages
                {
                    CountryCode = language.CountryCode,
                    Name        = language.Name
                };
                languages.Add(theoryLanguage);
            }
            return(languages);
        }