Beispiel #1
0
 public void UpdateAfterCrawler(bool full)
 {
     try
     {
         _adt.Connection.Open();
         _adtProduct.Connection.Open();
         int count = (int)Convert.ToInt32(_adtProduct.Product_SelectCountCompanyID(ID));
         if (full)
         {
             _adt.UpdateQuery_TotalProduct_LastCrawler(count, DateTime.Now, ID);
         }
         else
         {
             _adt.UpdateQuery_TotalProduct(count, ID);
         }
         _adt.Connection.Close();
         _adtProduct.Connection.Close();
     }
     catch (Exception)
     {
         throw;
     }
 }