public IHttpActionResult insereSaida(Saida saida) { try { SaidaBLL bll = new SaidaBLL(); return(Ok(bll.insereSaida(saida))); }catch (Exception ex) { UtilBLL util = new UtilBLL(); return(Ok(util.getRetornoException(ex))); } }
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))); } }
public IHttpActionResult buscaTodasSaidas() { try { SaidaBLL bll = new SaidaBLL(); return(Ok(bll.getTodasSaidas())); } catch (Exception ex) { UtilBLL util = new UtilBLL(); return(Ok(util.getRetornoSaidaException(ex))); } }
public JsonResult Cadastrar(Saida saida) { SaidaBLL bll = new SaidaBLL(); return(Json(bll.Cadastrar(saida), JsonRequestBehavior.AllowGet)); }
public ActionResult Saida() { SaidaBLL bll = new SaidaBLL(); return(View(bll.BuscarEntradas())); }