Esempio n. 1
0
 /// <summary>
 /// 插入banner图片
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int InsertCarProductsBanner(CarProductsBanner model)
 {
     try
     {
         return(DALCarProducts.InsertCarProductsBanner(model));
     }
     catch (Exception ex)
     {
         logger.Error("InsertCarProductsBanner", ex);
     }
     return(0);
 }
Esempio n. 2
0
 /// <summary>
 /// 更新banner图片
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool UpdateCarProductsBanner(CarProductsBanner model)
 {
     try
     {
         return(DALCarProducts.UpdateCarProductsBanner(model));
     }
     catch (Exception ex)
     {
         logger.Error("UpdateCarProductsBanner", ex);
     }
     return(false);
 }
Esempio n. 3
0
 /// <summary>
 /// 获取banner实体
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public CarProductsBanner GetCarProductsBannerEntityByFloorId(int floorId)
 {
     try
     {
         return(DALCarProducts.GetCarProductsBannerEntityByFloorId(floorId));
     }
     catch (Exception ex)
     {
         logger.Error("GetCarProductsBannerEntityByFloorId", ex);
     }
     return(null);
 }
Esempio n. 4
0
 /// <summary>
 /// 根据类型获取banner列表
 /// </summary>
 /// <returns></returns>
 public List <CarProductsBanner> GetCarProductsBannerList(int type)
 {
     try
     {
         return(DALCarProducts.GetCarProductsBannerList(type));
     }
     catch (Exception ex)
     {
         logger.Error("GetCarProductsBannerList", ex);
     }
     return(null);
 }
Esempio n. 5
0
 /// <summary>
 /// 删除楼层配置
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public bool DeleteCarProductsFloorConfigByFloorId(int floorId)
 {
     try
     {
         return(DALCarProducts.DeleteCarProductsFloorConfigByFloorId(floorId));
     }
     catch (Exception ex)
     {
         logger.Error("DeleteCarProductsFloorConfigByFloorId", ex);
     }
     return(false);
 }
Esempio n. 6
0
 /// <summary>
 /// 更新banner图片
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool UpdateCarProductsFloorConfig(CarProductsFloorConfig model)
 {
     try
     {
         return(DALCarProducts.UpdateCarProductsFloorConfig(model));
     }
     catch (Exception ex)
     {
         logger.Error("UpdateCarProductsFloorConfig", ex);
     }
     return(false);
 }
Esempio n. 7
0
 /// <summary>
 /// 删除楼层
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public bool DeleteCarProductsFloor(int id)
 {
     try
     {
         return(DALCarProducts.DeleteCarProductsFloor(id));
     }
     catch (Exception ex)
     {
         logger.Error("DeleteCarProductsFloor", ex);
     }
     return(false);
 }
Esempio n. 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="floorId"></param>
 /// <returns></returns>
 public List <CarProductsFloorConfig> GetCarProductsFloorConfigList(int floorId)
 {
     try
     {
         return(DALCarProducts.GetCarProductsFloorConfigsList(floorId));
     }
     catch (Exception ex)
     {
         logger.Error("GetCarProductsFloorConfigList", ex);
     }
     return(null);
 }
Esempio n. 9
0
 /// <summary>
 /// 获取单个楼层配置实体
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public CarProductsFloorConfig GetCarProductsFloorConfigEntity(int id)
 {
     try
     {
         return(DALCarProducts.GetCarProductsFloorConfigEntity(id));
     }
     catch (Exception ex)
     {
         logger.Error("GetCarProductsFloorConfigEntity", ex);
     }
     return(null);
 }
Esempio n. 10
0
 /// <summary>
 /// 模块信息列表
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public List <CarProductsHomePageModuleConfig> GetHomePageModuleConfigs(int type = 0)
 {
     try
     {
         return(DALCarProducts.GetHomePageModuleConfigs(type));
     }
     catch (Exception ex)
     {
         logger.Error("GetHomePageModuleConfigs", ex);
     }
     return(null);
 }
Esempio n. 11
0
        /// <summary>
        /// 是否存在相同楼层
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool IsExistEqualFloorName(CarProductsFloor model)
        {
            var result = true;

            try
            {
                result = DALCarProducts.IsExistEqualFloorName(model);
            }
            catch (Exception ex)
            {
                logger.Error("IsExistEqualFloorName", ex);
            }
            return(result);
        }
Esempio n. 12
0
        /// <summary>
        /// 查询相同类型banner数量
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int SelectCarProductsBannerCount(CarProductsBanner model)
        {
            var result = 0;

            try
            {
                result = DALCarProducts.SelectCarProductsBannerCount(model);
            }
            catch (Exception ex)
            {
                logger.Error("SelectCarProductsBannerCount", ex);
            }
            return(result);
        }
Esempio n. 13
0
        /// <summary>
        /// 是否存在相同排序
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool IsExistEqualSort(CarProductsBanner model)
        {
            var result = true;

            try
            {
                result = DALCarProducts.IsExistEqualSort(model);
            }
            catch (Exception ex)
            {
                logger.Error("IsExistEqualSort", ex);
            }
            return(result);
        }