예제 #1
0
파일: busAsiento.cs 프로젝트: dambert/Repo
        public int Insertar(ASIENTO P)
        {
            try
            {
                return new DatAsiento().Insertar(P);
            }
            catch (Exception ex)
            {
                
                throw ex;
            }

        }
예제 #2
0
파일: busAsiento.cs 프로젝트: dambert/Repo
        public void Actualizar(ASIENTO P)
        {
            try
            {

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

        }
예제 #3
0
파일: DatAsiento.cs 프로젝트: dambert/Repo
        public int Insertar(ASIENTO P)
        {
            try
            {
                ContextoDB ct = new ContextoDB();
                ct.ASIENTO.Add(P);
                ct.SaveChanges();
                return P.CASiento;
            }
            catch (Exception ex)
            {
                
                throw ex;
            }

        }
예제 #4
0
파일: DatAsiento.cs 프로젝트: dambert/Repo
        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;
            }

        }
예제 #5
0
 public void setbtnAsiento(ASIENTO obj) { this.btnAsiento = obj; }
예제 #6
0
 public AsientoButton(ASIENTO obj)
 {            
     this.btnAsiento = obj;
 }