protected override void CheckMethod (string method) { if (method == null) throw new NotSupportedException ("method"); switch (method.ToLowerInvariant ()) { case "get": case "post": break; default: throw new NotSupportedException (); } }