Ejemplo n.º 1
0
        public async Task <HttpResponseMessage> Put(string contextId, string lineItemId, string id, LisResult result)
        {
            try
            {
                var context = new PutResultContext(contextId, lineItemId, id, result);

                await OnPutResult(context);

                return(Request.CreateResponse(context.StatusCode));
            }
            catch (Exception ex)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
            }
        }
Ejemplo n.º 2
0
        public async Task<HttpResponseMessage> Put(string contextId, string lineItemId, string id, LisResult result)
        {
            try
            {
                var context = new PutResultContext(contextId, lineItemId, id, result);

                await OnPutResult(context);

                return Request.CreateResponse(context.StatusCode);
            }
            catch (Exception ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex);
            }
        }