public void Create(TestimonialViewModel command) { var newtestimonial = new Testimonial(command.StudentName, command.StudentImg, command.StudentEmail, command.CourseName, command.UniversityName, command.EduYear, command.Title, command.Description); _irepository.Create(newtestimonial); _irepository.SaveChanges(); }
/// <summary> /// Creates a new element. /// </summary> /// <param name="settings">New element settings.</param> /// <param name="unitOfWork">Unit of work.</param> public void Create(IElementSettings settings, IUnitOfWork unitOfWork = null) { _testimonialRepository.Create((TestimonialSettings)settings, unitOfWork); }