protected void CreateLotButton_Click(object sender, EventArgs e) { if (Page.IsValid) { string lotTitle = LotTitleTextBox.Text.Trim(); string lotDescription = LotDescriptionTextBox.Text.Trim(); decimal startingPrice = Decimal.Parse(StartingPriceTextBox.Text); Auctions.CreateAuctionLot(auction.AuctionID, lotTitle, lotDescription, startingPrice); string url = GetRouteUrl("EditAuctionRoute", new { auction_id = auction.AuctionID.ToString() }); Response.Redirect(url, true); } }