/// <summary>
 /// 更新信息信息
 /// </summary>
 /// <param name="inputDtos">包含更新信息的信息DTO信息</param>
 /// <returns>业务操作结果</returns>
 public OperationResult EditShopDistributionLevels(params ShopDistributionLevelInputDto[] inputDtos)
 {
     return(ShopDistributionLevelRepository.Update(inputDtos,
                                                   (dto, entity) =>
     {
     },
                                                   (dto, entity) =>
     {
         return entity;
     }));
 }
 /// <summary>
 /// 添加店铺信息信息
 /// </summary>
 /// <param name="inputDtos">要添加的店铺信息DTO信息</param>
 /// <returns>业务操作结果</returns>
 public OperationResult AddShopDistributionLevels(params ShopDistributionLevelInputDto[] inputDtos)
 {
     return(ShopDistributionLevelRepository.Insert(inputDtos,
                                                   dto =>
     {
         if (ShopDistributionLevelRepository.CheckExists(ss => ss.Name == dto.Name))
         {
             throw new Exception("级别:{0}已经存在,不能添加同名设置".FormatWith(dto.Name));
         }
     },
                                                   (dto, entity) =>
     {
         return entity;
     }));
 }
 /// <summary>
 /// 删除信息信息
 /// </summary>
 /// <param name="ids">要删除的信息编号</param>
 /// <returns>业务操作结果</returns>
 public OperationResult DeleteShopDistributionLevels(params int[] ids)
 {
     return(ShopDistributionLevelRepository.Delete(ids));
 }
 /// <summary>
 /// 检查店信息是否存在
 /// </summary>
 /// <param name="predicate">检查谓语表达式</param>
 /// <param name="id">更新的信息编号</param>
 /// <returns>信息是否存在</returns>
 public bool CheckShopDistributionLevelExists(Expression <Func <ShopDistributionLevel, bool> > predicate, int id = 0)
 {
     return(ShopDistributionLevelRepository.CheckExists(predicate, id));
 }