Exemplo n.º 1
0
 public bool Update(List<Model.PriceMasterTemp> priceMasterTempList, List<ItemPrice> itemPrices)
 {
     ArrayList sqls = new ArrayList();
     if (priceMasterTempList != null)
     {
         foreach (var item in priceMasterTempList)
         {
             sqls.Add(_priceMasterTempDao.Update(item));
         }
     }
     if (itemPrices != null)
     {
         ItemPriceTempMgr itemPriceTempMgr = new ItemPriceTempMgr("");
         foreach (var item in itemPrices)
         {
             sqls.Add(itemPriceTempMgr.Update(item));
         }
     }
     MySqlDao mySqlDao = new MySqlDao(connctionString);
     return mySqlDao.ExcuteSqls(sqls);
 }