Ejemplo n.º 1
0
 public static List<Tuple<int, string>> selectTables()
 {
     try
     {
         var procedimiento = new DataLayer();
         return procedimiento.selectTables();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 2
0
 public static string Delete(int id)
 {
     try
     {
         var procedimiento = new DataLayer();
         return procedimiento.Delete(id);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 3
0
 public static string Delete(int id)
 {
     try
     {
         var procedimiento = new DataLayer();
         return(procedimiento.Delete(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 4
0
 public static List <Tuple <int, string> > selectTables()
 {
     try
     {
         var procedimiento = new DataLayer();
         return(procedimiento.selectTables());
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 5
0
 public static int Insert(RelacionesTablas_BD tablas, int[] m)
 {
     try
     {
         var procedimiento = new DataLayer();
         for (int i = 0; i < m.Length; i++)
         {
             tablas.TablaRelacionada = m[i];
             procedimiento.Insert(tablas);
         }
         return 1;
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 6
0
 public static int Insert(RelacionesTablas_BD tablas, int[] m)
 {
     try
     {
         var procedimiento = new DataLayer();
         for (int i = 0; i < m.Length; i++)
         {
             tablas.TablaRelacionada = m[i];
             procedimiento.Insert(tablas);
         }
         return(1);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }