protected void StatusButton_Click(object sender, EventArgs e) { if (!auction.IsStarted) { if (lots.Count != 0) { Auctions.StartAuction(auction.AuctionID); } } else if (!auction.IsClosed) { Auctions.CloseAuction(auction.AuctionID); } string url = GetRouteUrl("EditAuctionRoute", new { auction_id = auction.AuctionID.ToString() }); Response.Redirect(url, true); }