예제 #1
0
 public List <Corte> ListaCortesEnproceso()
 {
     try
     {
         proCorteDLA dla = new proCorteDLA();
         return(dla.ListaCortes());
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public Corte ObtenerCorte(short id)
 {
     try
     {
         proCorteDLA dla = new proCorteDLA();
         return(dla.ObtenerCorte(id));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
        public bool EliminarCorte(short id)
        {
            try
            {
                proCorteDLA dla = new proCorteDLA();

                return(dla.EliminarCorte(id));
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #4
0
 public bool AgregarActualizarCorte(Corte corte)
 {
     try
     {
         proCorteDLA dla = new proCorteDLA();
         if (corte.Id > 0)
         {
             return(dla.ActualizarCorte(corte));
         }
         else
         {
             return(dla.AgregarCorte(corte));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }