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))); } }
public IHttpActionResult getEmpresaContemEstoque() { try { EstoqueBLL bll = new EstoqueBLL(); return(Ok(bll.getEmpresaContemEstoque())); } catch (Exception ex) { UtilBLL util = new UtilBLL(); return(Ok(util.getRetornoEmpresaException(ex))); } }