Exemplo n.º 1
0
        public void Modificar_L(PUESTOS obj)
        {
            var trans = this.context.Database.BeginTransaction();

            try
            {
                PuestoAD.Modificar_D(obj);
                this.context.SaveChanges();
                trans.Commit();
            }
            catch (Exception ex)
            {
                trans.Rollback();
            }
        }