Example #1
0
    protected bool IsValidFormBooking()
    {
        string booking = Request.QueryString["booking"];

        return(booking != null && Regex.IsMatch(booking, @"^\d+$") && BookingDB.Exists(Convert.ToInt32(booking)));
    }