Пример #1
0
 public IHttpActionResult getEmpresaByName(string nome)
 {
     try
     {
         EmpresaBLL bll = new EmpresaBLL();
         return(Ok(bll.getEmpresaByName(nome)));
     }catch (Exception ex)
     {
         UtilBLL util = new UtilBLL();
         return(Ok(util.getRetornoEmpresaException(ex)));
     }
 }
Пример #2
0
 public IHttpActionResult getEmpresaContemEstoque()
 {
     try
     {
         EstoqueBLL bll = new EstoqueBLL();
         return(Ok(bll.getEmpresaContemEstoque()));
     }
     catch (Exception ex)
     {
         UtilBLL util = new UtilBLL();
         return(Ok(util.getRetornoEmpresaException(ex)));
     }
 }