public IHttpActionResult getEstoque() { try { EstoqueBLL bll = new EstoqueBLL(); return(Ok(bll.getEstoque())); }catch (Exception ex) { UtilBLL util = new UtilBLL(); return(Ok(util.getRetornoEstoqueException(ex))); } }
public IHttpActionResult getEstoqueByProduto([FromBody] int idProduto) { try { EstoqueBLL bll = new EstoqueBLL(); return(Ok(bll.getEstoqueByProduto(idProduto))); } catch (Exception ex) { UtilBLL util = new UtilBLL(); return(Ok(util.getRetornoEstoqueException(ex))); } }