public TestimonialListVM() { Testimonials = new List <Testimonial>().ToPagedList(1, 1); SearchCriteria = new TestimonialSearchCriteria(); }
public TestimonialListVM() { Testimonials = new List<Testimonial>().ToPagedList(1, 1); SearchCriteria = new TestimonialSearchCriteria(); }
public ActionResult Index([Bind(Include = "Page, Sort")] PageSortCriteria pageSortCriteria, [Bind(Include = "Title, Description")] TestimonialSearchCriteria searchCriteria = null) { TestimonialListVM vm = new TestimonialListVM { Testimonials = UOW.Testimonials.GetAllPaged(pageSortCriteria, searchCriteria), PageSortCriteria = pageSortCriteria, SearchCriteria = searchCriteria }; return(View(vm)); }