예제 #1
0
        public HttpResponseMessage Preview([FromBody] XdtPostModel model)
        {
            var config = AppHost.GenerateConfig(model.NewXdt);

            return(new HttpResponseMessage(System.Net.HttpStatusCode.OK)
            {
                Content = new StringContent(config, Encoding.UTF8, "text/plain")
            });
        }
예제 #2
0
        public IHttpActionResult Post([FromBody] XdtPostModel model)
        {
            AppHost.SaveFromXdt(model.NewXdt);

            return(Ok());
        }