string type = Request["type"]; //值为null; //?type= 值为""; //?type=12 值为"12"
string type = Request["type"]; if (type!="A" && type!="B") { return HttpNotFound(); }