public static List <LanguageModel> Map(List <Language> lstModel) { var ret = new List <LanguageModel>(); int i = 0, lstModel_count = lstModel.Count; for (i = 0; i < lstModel_count; i++) { ret.Add(LanguageMap.Map(lstModel[i])); } return(ret); }
public static PageContent Map(PageContentModel objModel) { PageContent objPageContent = new PageContent() { Id = objModel.PageId, LanguageId = objModel.LanguageId, PageUrl = objModel.PageUrl.Trim(), PageName = objModel.PageName.Trim(), Content = objModel.Content.Trim(), Language = LanguageMap.Map(objModel.Language) }; return(objPageContent); }
public static PageContentModel Map(PageContent objModel) { PageContentModel objPageContentModel = new PageContentModel() { PageId = objModel.Id, //LanguageId = objModel.LanguageId, PageUrl = objModel.PageUrl.Trim(), PageName = objModel.PageName.Trim(), Content = objModel.Content.Trim(), Language = LanguageMap.Map(objModel.Language) }; //objPageContentModel.Language = LanguageMap.Map(Language.FindSingleBy.Id(objModel.LanguageId)); return(objPageContentModel); }