public TheoryLanguages MapLanguage(DbTheoryLanguages dbTheoryLanguage) { var language = new TheoryLanguages { CountryCode = dbTheoryLanguage.CountryCode, Name = dbTheoryLanguage.Name }; return(language); }
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); }