コード例 #1
0
 /// <summary>
 /// 根据品牌和类别查询系列产品
 /// </summary>
 /// <param name="category"></param>
 /// <param name="brand"></param>
 /// <returns></returns>
 public string[] GetProductPrioritySettingsSeries(string category, string brand)
 {
     try
     {
         return(TuhuProductcatalogReadDbScopeManager.Execute(conn =>
         {
             if (category == "Oil")
             {
                 return DalProduct.GetOilProductSeries(conn, category, brand);
             }
             return DalProduct.GetProductSeries(conn, category, brand);
         }));
     }
     catch (Exception ex)
     {
         logger.Error(ex.Message, ex);
     }
     return(null);
 }