Esempio n. 1
0
        public ActionResult Disable(int bidedItemId, string returnUrl)
        {
            if (!_orchardServices.Authorizer.Authorize(Permissions.ManageBids, T("Couldn't disable Bids")))
            {
                return(new HttpUnauthorizedResult());
            }

            _bidService.DisableBidsForBidedContent(bidedItemId);
            return(this.RedirectLocal(returnUrl, () => RedirectToAction("Index")));
        }