예제 #1
0
        public IActionResult Put([FromBody] StockViewModel stockViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(stockViewModel));
            }

            _stockAppService.Update(stockViewModel);

            return(Response(stockViewModel));
        }