Example #1
0
 /// <summary>
 /// Meotod para registrar los bloques en base de datos
 /// crm
 /// </summary>
 /// <param name="b"></param>
 /// <returns></returns>
 public int InserBloques(bloques b)
 {
     try
     {
         bd.bloques.Add(b);
         bd.SaveChanges();
         return 1;
     }
     catch (DbUpdateException)
     {
         return 0;
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 public int InsertBloques(bloques b)
 {
     BLLBloques bq = new BLLBloques();
     return bq.InserBloques(b);
 }