Example #1
0
 public IHttpActionResult buscaSaidaPorIdEmpresa(int idEmpresa)
 {
     try
     {
         SaidaBLL bll = new SaidaBLL();
         return(Ok(bll.getSaidaByEmpresa(idEmpresa)));
     }
     catch (Exception ex)
     {
         UtilBLL util = new UtilBLL();
         return(Ok(util.getRetornoSaidaException(ex)));
     }
 }
Example #2
0
 public IHttpActionResult buscaTodasSaidas()
 {
     try
     {
         SaidaBLL bll = new SaidaBLL();
         return(Ok(bll.getTodasSaidas()));
     }
     catch (Exception ex)
     {
         UtilBLL util = new UtilBLL();
         return(Ok(util.getRetornoSaidaException(ex)));
     }
 }