//public ActionResult AddArt(int id)
        //{

        //    result = ar.Insert(ar.GetByIdApi(id).ProccessResult);
        //    if (result.IsSucceed)
        //    {
        //        return RedirectToAction("News", "Admin/Article");
        //    }
        //    return RedirectToAction("List", "Admin/Article");
        //}

        public ActionResult News(int?SayfaNo)
        {
            int _sayfaNo = SayfaNo ?? 1;
            var articles = ar.List().ProccessResult.OrderByDescending(m => m.Id).ToPagedList <Articles>(_sayfaNo, 10);

            return(View(articles));
        }
示例#2
0
        public ActionResult GetByCat(int id, int?SayfaNo)
        {
            int _sayfaNo = SayfaNo ?? 1;

            return(View(ar.List().ProccessResult.Where(t => t.CategoryId == id).ToPagedList <Articles>(_sayfaNo, 10)));
        }