コード例 #1
0
        public Mutation(Models.Data data)
        {
            Name = "Mutation";

            Field <Types.Base64DataType>(
                "insertBase64Data",
                arguments: new QueryArguments(
                    new QueryArgument <StringGraphType> {
                Name = "name"
            },
                    new QueryArgument <StringGraphType> {
                Name = "base64"
            }
                    ),
                resolve: context =>
            {
                var m = new Models.Base64Data
                {
                    Name   = context.GetArgument <string>("name"),
                    Base64 = context.GetArgument <string>("base64")
                };
                data.Base64Data[m.Name] = m;
                return(m);
            });
        }
コード例 #2
0
    public IActionResult Status([FromQuery] Models.Data data, string type)
    {
        var sdk = sdkdata();

        if (type == "payment")
        {
            var pay = Payment.FindById(Convert.ToInt64(data.id), sdk);

            //PaymentAdd(pay,data.UserId);
        }
        return(Ok());
    }