public IActionResult ViewItem(string category, string slugurl, string acceptButton, string rateButton, string rateValue, string rateComment)
        {
            if (!string.IsNullOrWhiteSpace(rateButton))
            {
                var result = _projectEngine.CommentOffer(rateButton, rateValue, rateComment);

                if (result.Type == TransactionType.Success)
                {
                    return(RedirectToRoute("viewItem", new { category = category, slugurl = slugurl }));
                }
                else
                {
                    var model = _projectEngine.GetItem(_userManager.GetUserId(User), category, slugurl);
                    ViewBag.Title = model.Item.Title;

                    ModelState.AddModelError("", result.Message);
                    return(View(model));
                }
            }

            if (!string.IsNullOrWhiteSpace(acceptButton))
            {
                var result = _projectEngine.AcceptOffer(_userManager.GetUserId(User), acceptButton);

                if (result.Type == TransactionType.Success)
                {
                    return(RedirectToRoute("viewItem", new { category = category, slugurl = slugurl }));
                }
                else
                {
                    var model = _projectEngine.GetItem(_userManager.GetUserId(User), category, slugurl);
                    ViewBag.Title = model.Item.Title;

                    ModelState.AddModelError("", result.Message);
                    return(View(model));
                }
            }

            return(RedirectToRoute("viewItem", new { category = category, slugurl = slugurl }));
        }