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") }); }
public async Task <ActionResult> Notify(FormCollection collection) { var right = await NotifyHelper.NotifyAndVerify(collection); return(Content(right ? "success" : "fail")); }