Beispiel #1
0
 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)));
     }
 }
Beispiel #2
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)));
     }
 }
Beispiel #3
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)));
     }
 }
Beispiel #4
0
        public JsonResult Cadastrar(Saida saida)
        {
            SaidaBLL bll = new SaidaBLL();

            return(Json(bll.Cadastrar(saida), JsonRequestBehavior.AllowGet));
        }
Beispiel #5
0
        public ActionResult Saida()
        {
            SaidaBLL bll = new SaidaBLL();

            return(View(bll.BuscarEntradas()));
        }