public ActionResult OnPostCancel() { if (ModelState.IsValid) { int applicationId = int.Parse(Request.Query["applicationid"]); chosenMembershipApplication = RequestDirector.ViewMembershipApplicationDetails(applicationId); confirmation = RequestDirector.CancelMembershipApplication(applicationId); if (confirmation) { Alert = $"Application for" + " " + chosenMembershipApplication.FirstName + " " + chosenMembershipApplication.LastName + " " + "has been cancelled!"; return(RedirectToPage("ReviewMembershipApplication")); } } return(Page()); }