Exemplo n.º 1
0
        public ActionResult Index(int id)
        {
            SetUpCommonArticle();
            AnperoService ws = new AnperoService();
            BlogItem      rs = ws.GetArticleById(StoreID, TokenKey, id);

            ViewBag.Title           = rs.Title;
            ViewBag.WebsiteUrl      = Request.Url.Scheme + System.Uri.SchemeDelimiter + Request.Url.Host + Anpero.StringHelpper.GetArticleLink(rs.Title, rs.Id);
            ViewData["blogdeltail"] = rs;
            GetTopArticle();
            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Index(int id)
        {
            SetUpCommonArticle();
            AnperoService ws = new AnperoService();
            BlogItem      rs = ws.GetArticleById(StoreID, TokenKey, id);

            ViewBag.Title           = rs.Title;
            ViewData["blogdeltail"] = rs;
            SearchArticleResults s = new SearchArticleResults();

            s = ws.SearchArticle(StoreID, TokenKey, rs.CategoryId, 1, 5, 0);
            ViewData["ArticleList"] = s;
            return(View());
        }