public IActionResult Put([FromBody] StockViewModel stockViewModel) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(stockViewModel)); } _stockAppService.Update(stockViewModel); return(Response(stockViewModel)); }