예제 #1
0
        public async Task <HttpResponseMessage> Post(HttpRequestMessage req, TraceWriter log)
        {
            var payload = await req.Content.ReadAsAsync <Journey>();

            var item = await _JourneyService.CreateAsync(payload, req);

            return(req.CreateResponse(HttpStatusCode.Created, item));
        }