public ActionResult SetActiveAuction()
        {
            var pictureAuctions = this.auctionService.GroupByTypes(ItemType.Picture).ToList();
            ViewBag.PictureAuctions = pictureAuctions;

            var carAuctions = this.auctionService.GroupByTypes(ItemType.Car).ToList();
            ViewBag.CarAuctions = carAuctions;

            var coinAuctions = this.auctionService.GroupByTypes(ItemType.Coin).ToList();
            ViewBag.CoinAuctions = coinAuctions;

            var stampAuctions = this.auctionService.GroupByTypes(ItemType.PostageStamp).ToList();
            ViewBag.StampAuctions = stampAuctions;

            var statueAuctions = this.auctionService.GroupByTypes(ItemType.Statue).ToList();
            ViewBag.StatueAuctions = statueAuctions;

            var vaseAuctions = this.auctionService.GroupByTypes(ItemType.Vase).ToList();
            ViewBag.VaseAuctions = vaseAuctions;

            var otherAuctions = this.auctionService.GroupByTypes(ItemType.Other).ToList();
            ViewBag.OtherAuctions = otherAuctions;

            var model = new SetActiveAuctionModel();

            return this.View(model);
        }
        public ActionResult SetActiveAuction(SetActiveAuctionModel model)
        {
            var auction = this.dataAuction.GetById(model.Id);

            if (auction == null)
            {
                this.TempData["Wrong"] = "There is no auction with that name and ID";

                return this.View("SetActiveAuction");
            }

            auction.Active = true;

            this.dataAuction.Save();

            this.TempData["Success"] = "Auction was activated";

            return this.RedirectToAction("ListAllAuctions", "PublicAuction", new { area = "" });
        }