19 lines
388 B

2 years ago
  1. using System.Web;
  2. /// <summary>
  3. /// NotSupportedHandler 的摘要说明
  4. /// </summary>
  5. public class NotSupportedHandler : Handler
  6. {
  7. public NotSupportedHandler(HttpContext context)
  8. : base(context)
  9. {
  10. }
  11. public override void Process()
  12. {
  13. WriteJson(new
  14. {
  15. state = "action 参数为空或者 action 不被支持。"
  16. });
  17. }
  18. }