public IHttpActionResult buscaEntradaPorIdEmpresa(int idEmpresa) { try { EntradaBLL bll = new EntradaBLL(); return(Ok(bll.getEntradaByEmpresa(idEmpresa))); } catch (Exception ex) { UtilBLL util = new UtilBLL(); return(Ok(util.getRetornoEntradaException(ex))); } }
public IHttpActionResult buscaTodasEntradas() { try { EntradaBLL bll = new EntradaBLL(); return(Ok(bll.getTodasEntradas())); } catch (Exception ex) { UtilBLL util = new UtilBLL(); return(Ok(util.getRetornoEntradaException(ex))); } }