Ejemplo n.º 1
0
        public int Insertar(ASIENTO P)
        {
            try
            {
                return new DatAsiento().Insertar(P);
            }
            catch (Exception ex)
            {
                
                throw ex;
            }

        }
Ejemplo n.º 2
0
        public void Actualizar(ASIENTO P)
        {
            try
            {

                new DatAsiento().Actualizar(P);
              
            }
            catch (Exception ex)
            {
                
                throw ex;
            }

        }
Ejemplo n.º 3
0
        public int Insertar(ASIENTO P)
        {
            try
            {
                ContextoDB ct = new ContextoDB();
                ct.ASIENTO.Add(P);
                ct.SaveChanges();
                return P.CASiento;
            }
            catch (Exception ex)
            {
                
                throw ex;
            }

        }
Ejemplo n.º 4
0
        public void Actualizar(ASIENTO P)
        {
            try
            {
                ContextoDB ct = new ContextoDB();
                ASIENTO ASIENTO = ct.ASIENTO.Where(x => x.CASiento == P.CASiento).SingleOrDefault();

                if (ASIENTO != null)
                {
                    ct.Entry(ASIENTO).CurrentValues.SetValues(P);
                    ct.SaveChanges();
                }
            }
            catch (Exception ex)
            {
                
                throw ex;
            }

        }
Ejemplo n.º 5
0
 public void setbtnAsiento(ASIENTO obj) { this.btnAsiento = obj; }
Ejemplo n.º 6
0
 public AsientoButton(ASIENTO obj)
 {            
     this.btnAsiento = obj;
 }