Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }