Exemplo n.º 1
0
        // PUT api/<controller>/5
        public IHttpActionResult Put(int id, [FromBody] string value, [FromUri] ApiActionQueryOptions options)
        {
            ActionContext.ResolveActionExecutionContext(options, _executionContext);
            var response = _valuesService.UpdateItem(id, value);

            return(GenerateActionResult(response));
        }