public ActionResult OnPostCancel() { if (ModelState.IsValid) { Day = Request.Query["day"].ToString(); TimeSlot = DateTime.Parse(Request.Query["time"]); chosenstandingRequest = RequestDirector.FindReservedStandingTeeTime(Day, TimeSlot, RequestedStartDate, RequestedEndDate); Confirmation = RequestDirector.CancelStandingTeeTimeRequest(chosenstandingRequest); if (Confirmation) { Alert = $"Standing Tee Time Cancelled successfully!"; return(RedirectToPage("SubmitStandingTeeTime")); } } return(Page()); }