Пример #1
0
 public IHttpActionResult getEstoque()
 {
     try
     {
         EstoqueBLL bll = new EstoqueBLL();
         return(Ok(bll.getEstoque()));
     }catch (Exception ex)
     {
         UtilBLL util = new UtilBLL();
         return(Ok(util.getRetornoEstoqueException(ex)));
     }
 }
Пример #2
0
 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)));
     }
 }