Exemple #1
0
        public void Actualizar(ASIENTO_EVENTO P)
        {

            try
            {
                new DatAsiento_Evento().Actualizar(P);
            }
            catch (Exception e)
            {

                throw e;
            }
        }
Exemple #2
0
        public void Insertar(ASIENTO_EVENTO P)
        {

            try
            {
                new DatAsiento_Evento().Insertar(P);
            }
            catch (Exception e)
            {
                
                throw e;
            }
        }
Exemple #3
0
        public void Insertar(ASIENTO_EVENTO P)
        {
            try
            {
                ContextoDB ct = new ContextoDB();
                ct.ASIENTO_EVENTO.Add(P);
                ct.SaveChanges();
            }
            catch (Exception e)
            {
                
                throw e;
            }

        }
Exemple #4
0
        public void Actualizar(ASIENTO_EVENTO P)
        {
            try
            {
                ContextoDB ct = new ContextoDB();
                ASIENTO_EVENTO ASIENTO_EVENTO = (from x in ct.ASIENTO_EVENTO
                                                 where x.CASiento == P.CASiento && x.CEvento == P.CEvento
                                                 select x).FirstOrDefault();

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

        }