public ActionResult ArticleList(int sayfa = 1) { return(View(Tuple.Create(article_repo.Where(x => x.Status != DataStatus.Deleted).OrderByDescending(x => x.CreatedDate).ToPagedList(sayfa, 5), col_repo.SelectActives()))); }
public ActionResult ListColumnist() { return(View(col_repo.SelectActives())); }
public ActionResult UpdateArticle(int id) { List <Category> kategori = cat_repo.Where(x => x.ID == 1); return(View(Tuple.Create(article_repo.GetByID(id), col_repo.SelectActives(), kategori))); }
public ActionResult AddArticle() { List <Category> kategori = cat_repo.Where(x => x.ID == 1); return(View(Tuple.Create(new Article(), col_repo.SelectActives(), kategori))); }