자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public IActionResult Create(TestimonialViewModel model) { if (ModelState.IsValid) { var testimonial = _mapper.Map <TestimonialViewModel, Testimonial>(model); testimonial.AddedBy = _admin.Fullname; _sectionRepository.CreateTestimonail(testimonial); return(RedirectToAction("index")); } return(View(model)); }