Exemplo n.º 1
0
        public TestimonialViewModel GetBy(int id)
        {
            var SelectedTestimonial = _irepository.GetByID(id);

            return(new TestimonialViewModel
            {
                Id = SelectedTestimonial.Id,
                StudentName = SelectedTestimonial.StudentName,
                StudentEmail = SelectedTestimonial.StudentEmail,
                StudentImg = SelectedTestimonial.StudentImg,
                CourseName = SelectedTestimonial.CourseName,
                UniversityName = SelectedTestimonial.UniversityName,
                EduYear = SelectedTestimonial.EduYear,
                IsVisible = SelectedTestimonial.IsVisible,
                CreatedDate = SelectedTestimonial.CreatedDate,
                Title = SelectedTestimonial.Title,
                Description = SelectedTestimonial.Description
            });
        }