コード例 #1
0
        public IActionResult Post([FromBody] StockViewModel stockViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(stockViewModel));
            }

            _stockAppService.AddNewStock(stockViewModel);

            return(Response(stockViewModel));
        }