public PartialViewResult RecentPosts() { List <PostDTO> PostDtoList = PostUIService.TumListe() .OrderByDescending(c => c.PostDtoId) .Take(5).ToList(); return(PartialView(PostDtoList)); }
public ActionResult Index(int?SayfaNo) { try { int _sayfaNo = SayfaNo ?? 1; var PostDTOList = PostUIService.TumListe().OrderByDescending(x => x.CreatedDateDto).ToPagedList <PostDTO>(_sayfaNo, 10); return(View(PostDTOList)); } catch (Exception ex) { throw new Exception("Hata!"); } }
public ActionResult Index() { List <PostDTO> PostDtoList = PostUIService.TumListe().OrderByDescending(x => x.CreatedDateDto).ToList(); return(View(PostDtoList)); }