Example #1
0
        public void Insertar(string nombre, List <SCE_GRUPOTDA_TIENDA_BE> lstTiendas)
        {
            try
            {
                BE           = new SCE_GRUPOTDA_BE();
                BE.NOM_GRUPO = nombre;
                BE.TIENDAS   = lstTiendas;
                DA.SCE_GRUPOTDA_DA DA = new DA.SCE_GRUPOTDA_DA(usrLogin);

                using (TransactionScope scope = new TransactionScope())
                {
                    DA.Insertar(BE);
                    scope.Complete();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }