Ejemplo n.º 1
0
        public ActionResult RemoveCommentRating(Guid commentRatingId)
        {
            var model = CommentProcessor.GetCommentRating(commentRatingId);

            CommentProcessor.RemoveCommentRating(commentRatingId);
            return(RedirectToAction("Details", "Products", new { id = model.StoreItemId }));
        }
Ejemplo n.º 2
0
        public ActionResult CommentRatingDetails(Guid id)
        {
            var model           = CommentProcessor.GetCommentRating(id);
            var reportedComment = CommentProcessor.GetUserComment(model.CommentId);

            ViewData["ReportedComment"] = reportedComment;

            return(View(model));
        }
Ejemplo n.º 3
0
        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)));
        }
Ejemplo n.º 4
0
        public ActionResult EditCommentRating(Guid commentRatingId)
        {
            var model = CommentProcessor.GetCommentRating(commentRatingId);

            return(View(model));
        }