Ejemplo n.º 1
0
        public ActionResult ThirdLevCategoryList(string categoryUrl, string subCategoryUrl, string subSubCategoryUrl)
        {
            string url        = HttpContext.Request.RawUrl;
            int    catigoryId = DIYFEHelper.GetCatigoryRowId(categoryUrl, subCategoryUrl, subSubCategoryUrl);

            ListAccess   la    = new ListAccess();
            ArticleModel model = new ArticleModel();

            PageModel.ArticleContent.Title       = model.ArticleContent.Title;
            PageModel.ArticleContent.Description = model.ArticleContent.Description;
            PageModel.ArticleContent.Author      = model.ArticleContent.Author;
            PageModel.ArticleContent.Keywords    = model.ArticleContent.Keywords;

            model.MostViewed    = la.MostViewed(11, 20);
            model.CrumbLinkList = DIYFEHelper.GenerateCrumbLinks(catigoryId, linkPrefix);
            model.ArticleList   = la.ArticleList(catigoryId, 1);

            return(View(model));
        }
Ejemplo n.º 2
0
        public ActionResult FirstLevCategoryList(string categoryUrl)
        {
            ListAccess   la    = new ListAccess();
            ArticleModel model = new ArticleModel();

            model.MostViewed = la.MostViewed(11, 20);
            //model.CrumbLinkList = new List<CustomHtmlLink>();
            //AppStatic.Categories.Where(c => c.CategoryUrl == categoryUrl);
            PageModel.ArticleContent.Title       = model.ArticleContent.Title;
            PageModel.ArticleContent.Description = model.ArticleContent.Description;
            PageModel.ArticleContent.Author      = model.ArticleContent.Author;
            PageModel.ArticleContent.Keywords    = model.ArticleContent.Keywords;

            string url        = HttpContext.Request.RawUrl;
            int    catigoryId = DIYFEHelper.GetCatigoryRowId(categoryUrl, "", "");

            model.CrumbLinkList = DIYFEHelper.GenerateCrumbLinks(catigoryId, linkPrefix);
            model.ArticleList   = la.ArticleList(catigoryId, 1);
            // model.RelatedTreeView = DIYFEHelper.GenerateRelatedTreeView(catigoryId, linkPrefix);

            return(View(model));
        }