Ejemplo n.º 1
0
        public async Task <IActionResult> Post([FromBody] StockDTO stock)
        {
            var createdStock = await _stockAppService.InsertAsync(stock);

            if (createdStock == null)
            {
                return(BadRequest());
            }

            return(Ok(createdStock));
        }