public ActionResult Comment(GigsViewFormModel view) { var newGigComment = new GigReviews(view.ID, User.Identity.GetUserId(), view.NewComment); _unitOfWork.GigReviews.Add(newGigComment); _unitOfWork.Finish(); return(RedirectToAction("GigDetail", "Gigs", new { Id = view.ID })); }
public void Add(GigReviews review) { _context.GigReviews.Add(review); }