Exemplo n.º 1
0
        public List <TestimonialViewModel> GetAll()
        {
            var Testimonials = _irepository.GetAll();

            return(Testimonials.Select(Testimonialslist => new TestimonialViewModel
            {
                Id = Testimonialslist.Id,
                StudentName = Testimonialslist.StudentName,
                StudentEmail = Testimonialslist.StudentEmail,
                StudentImg = Testimonialslist.StudentImg,
                CourseName = Testimonialslist.CourseName,
                UniversityName = Testimonialslist.UniversityName,
                EduYear = Testimonialslist.EduYear,
                IsVisible = Testimonialslist.IsVisible,
                CreatedDate = Testimonialslist.CreatedDate,
                Title = Testimonialslist.Title,
                Description = Testimonialslist.Description
            }).ToList());
        }