示例#1
0
        public HttpResponseMessage Calc(Input input)
        {
            var output   = _service.Calculate(input);
            var response = _factory.Create();

            response.Content = new StringContent(output.ToJson());
            response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
            return(response);
        }