You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
733 B

using DefenseWeb.Attribute;
using DefenseWeb.Models;
using Newtonsoft.Json;
using OT.COM.SignalerMessage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
namespace DefenseWeb.Controllers
{
public class CmdController : ApiController
{
[HttpPost]
[DeflateCompression]
public HttpResponseMessage GetData()
{
var httpContent = Request.Content;
var asyncContent = httpContent.ReadAsStringAsync().Result;
asyncContent = asyncContent.Substring(1);
return (new CmdService()).GetData(asyncContent, true, Request);
}
}
}