Example #1
0
        public IActionResult Put(string id, [FromBody] Value valueIn)
        {
            var value = _valueService.Get(id);

            if (value == null)
            {
                return(NotFound());
            }

            _valueService.Update(id, valueIn);

            return(NoContent());
        }
Example #2
0
        public IActionResult Update(long id, [FromBody] ValueRequest request)
        {
            Value value = valueService.Get(id);

            if (value == null)
            {
                return(NotFound());
            }

            valueService.Update(id, value);

            return(NoContent());
        }