public virtual ViewResultBase List(bool isLight = false)
        {
            var testimonials = _testimonialService.GetList().
                               Where(t => t.IsActive).
                               OrderByDescending(t => t.Order).
                               ToList();

            var model = testimonials.AllTo <Testimonial, TestimonialShowModel>();

            return(ViewOrPartialView(isLight ? "List.Light" : "List",
                                     model));
        }
Пример #2
0
        public PartialViewResult Testimonials()
        {
            var model = _testimonialService.GetList();

            return(PartialView("_Testimonials", model));
        }