public IViewComponentResult Invoke() { var testimonials = _testimonialsRepository.GetTestimonials(); var model = _mapper.Map <IEnumerable <Testimonial>, IEnumerable <TestimonialViewModel> >(testimonials); return(View(model)); }
public List <TestimonialsVM> GetTestimonials(int languageID) { return(_repo.GetTestimonials(languageID)); }