public static moduleModel.CatalogLanguage ToModuleModel(this webModel.CatalogLanguage language) { var result = new moduleModel.CatalogLanguage(); result.InjectFrom(language); return(result); }
public static webModel.CatalogLanguage ToWebModel(this moduleModel.CatalogLanguage language) { var result = new webModel.CatalogLanguage(); //Do not use omu.InjectFrom for performance reasons result.CatalogId = language.CatalogId; result.LanguageCode = language.LanguageCode; result.IsDefault = language.IsDefault; return(result); }
public static webModel.CatalogLanguage ToWebModel(this moduleModel.CatalogLanguage language) { var result = new webModel.CatalogLanguage(); result.InjectFrom(language); return result; }