Пример #1
0
 public static void DeleteFamilia(int FamiliaId)
 {
     if (FamiliaId <= 0)
     {
         throw new ArgumentException("La familia no puede ser menor o igual a cero.");
     }
     try
     {
         FamiliaTableAdapter theAdapter = new FamiliaTableAdapter();
         theAdapter.DeleteFamilia(FamiliaId);
     }
     catch (Exception ex)
     {
         log.Error("Ocurrio un error al Eliminar la familia  .", ex);
         throw;
     }
 }