示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        JToken result = new JObject();
        string method = Request.HttpMethod;

        if (method == "POST")
        {
            req = glbf.GetReqInputStream();
            string action = (req["action"] ?? "").ToString();
            if (action != "view" && action != "getMemberReport")
            {
                result["result"]    = "fail";
                result["errorCode"] = ApiErrorCodes.ActionError;
                Response.Write(JsonConvert.SerializeObject(result));
            }
            if (action == "view")
            {
            }
            else if (action == "getMemberReport")
            {
                GetMemberReport();
            }
        }
        Response.End();
    }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string method = Request.HttpMethod;

        if (method == "POST")
        {
            req = glbf.GetReqInputStream();

            string action = (req["action"] ?? "").ToString();
            if (action == "view")
            {
            }
            else if (action == "agentDelete")
            {
                DeleteAgent();
            }
        }
        Response.End();
    }