public ActionResult RemoveCommentRating(Guid commentRatingId) { var model = CommentProcessor.GetCommentRating(commentRatingId); CommentProcessor.RemoveCommentRating(commentRatingId); return(RedirectToAction("Details", "Products", new { id = model.StoreItemId })); }
public ActionResult CommentRatingDetails(Guid id) { var model = CommentProcessor.GetCommentRating(id); var reportedComment = CommentProcessor.GetUserComment(model.CommentId); ViewData["ReportedComment"] = reportedComment; return(View(model)); }
public ActionResult ComplaintsList(string search, int?i) { ViewBag.Message = "All Complaints"; var models = CommentProcessor.GetCommentRating(); return(View(models .Where(x => search == null || x.OpinionText.ToLower().StartsWith(search.ToLower())) .Where(x => x.Report) .ToList() .ToPagedList(i ?? 1, 10))); }
public ActionResult EditCommentRating(Guid commentRatingId) { var model = CommentProcessor.GetCommentRating(commentRatingId); return(View(model)); }