コード例 #1
0
        public async Task <HttpResponseMessage> Notify(FormDataCollection collection)
        {
            var right = await NotifyHelper.NotifyAndVerify(collection.ReadAsNameValueCollection());

            return(new HttpResponseMessage {
                Content = new StringContent(right ? "success" : "fail", System.Text.Encoding.UTF8, "text/plain")
            });
        }
コード例 #2
0
        public async Task <ActionResult> Notify(FormCollection collection)
        {
            var right = await NotifyHelper.NotifyAndVerify(collection);

            return(Content(right ? "success" : "fail"));
        }