Beispiel #1
0
        public PartialViewResult RecentPosts()
        {
            List <PostDTO> PostDtoList = PostUIService.TumListe()
                                         .OrderByDescending(c => c.PostDtoId)
                                         .Take(5).ToList();


            return(PartialView(PostDtoList));
        }
Beispiel #2
0
        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!");
            }
        }
Beispiel #3
0
        public ActionResult Index()
        {
            List <PostDTO> PostDtoList = PostUIService.TumListe().OrderByDescending(x => x.CreatedDateDto).ToList();

            return(View(PostDtoList));
        }