예제 #1
0
        public IActionResult Update(int id, [FromBody] Order order)
        {
            order.Id = id;

            var result = _store.Update(order);

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

            return(RedirectToAction(nameof(GetById), new { result.Id }));
        }