コード例 #1
0
 public CarTransferController(ICar carService,
     ITransferCar buyService,
     IAccountService accountService)
 {
     this.carService = carService;
     this.transferService = buyService;
     this.accountService = accountService;
 }
コード例 #2
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="carService">站点下车辆基础信息(基本不变)接口</param>
 /// <param name="buyService">车辆转让保存读取接口</param>
 /// <param name="accountService">帐号服务接口</param>
 public CarTransferController(ICar carService,
                              ITransferCar buyService,
                              IAccountService accountService)
 {
     this.carService      = carService;
     this.transferService = buyService;
     this.accountService  = accountService;
 }
コード例 #3
0
 public TopShowService(IBuyCar buyCarService,
     ITransferCar transferCarService,
     IBuyHouse buyHouseService,
     ITransferHouse transferHouseService,
     IBuyGoods buyGoodsService,
     ITransferGoods transferGoodsService)
 {
     this.buyCarService = buyCarService;
     this.buyGoodsService = buyGoodsService;
     this.buyHouseService = buyHouseService;
     this.transferCarService = transferCarService;
     this.transferGoodsService = transferGoodsService;
     this.transferHouseService = transferHouseService;
 }
コード例 #4
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="buyCarService">车辆求购保存读取接口</param>
 /// <param name="transferCarService">车辆转让保存读取接口</param>
 /// <param name="buyHouseService">房屋求购保存读取接口</param>
 /// <param name="transferHouseService">房屋转让保存读取接口</param>
 /// <param name="buyGoodsService">物品求购保存读取接口</param>
 /// <param name="transferGoodsService">物品转让保存读取接口</param>
 public TopShowService(IBuyCar buyCarService,
                       ITransferCar transferCarService,
                       IBuyHouse buyHouseService,
                       ITransferHouse transferHouseService,
                       IBuyGoods buyGoodsService,
                       ITransferGoods transferGoodsService)
 {
     this.buyCarService        = buyCarService;
     this.buyGoodsService      = buyGoodsService;
     this.buyHouseService      = buyHouseService;
     this.transferCarService   = transferCarService;
     this.transferGoodsService = transferGoodsService;
     this.transferHouseService = transferHouseService;
 }
コード例 #5
0
        public AdminController(GlobalCache gloablCache,
            ICarUserCenter carUserCenter,
            IGoodsUserCenter goodsUserCenter,
            IHouseUserCenter houseUserCenter,
            ITopShow topShow,
            IBuyGoods buyGoods,
            ITransferGoods transferGoods,
            IBuyCar buyCar,
            ITransferCar transferCar,
            IBuyHouse buyHouse,
            ITransferHouse transferHouse,
            ICarBuyJob carBuyJob,
            ICarTransferJob carTransferJob,
            IHouseBuyJob houseBuyJob,
            IHouseTransferJob houseTransferJob,
            IGoodsBuyJob goodsBuyJob,
            IGoodsTransferJob goodsTransferJob)
        {
#if DEBUG

#else
            if (User == null || User.Identity == null || 
                User.Identity.Name == null || !User.Identity.Name.Equals("*****@*****.**"))
            {
                RedirectPermanent("http://yingtao.co.uk/Home/Index");
            }
#endif
            this.gloablCache = gloablCache;
            this.carUserCenter = carUserCenter;
            this.houseUserCenter = houseUserCenter;
            this.goodsUserCenter = goodsUserCenter;
            this.topShow = topShow;
            this.buyGoods = buyGoods;
            this.transferGoods = transferGoods;
            this.buyCar = buyCar;
            this.transferCar = transferCar;
            this.buyHouse = buyHouse;
            this.transferHouse = transferHouse;
            this.carBuyJob = carBuyJob;
            this.carTransferJob = carTransferJob;
            this.houseBuyJob = houseBuyJob;
            this.houseTransferJob = houseTransferJob;
            this.goodsBuyJob = goodsBuyJob;
            this.goodsTransferJob = goodsTransferJob;
        }
コード例 #6
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="transferCar">车辆转让保存读取接口</param>
 /// <param name="favorite">收藏接口</param>
 public CarTransferDetailController(ITransferCar transferCar,
     IFavorite favorite)
 {
     this.transferCar = transferCar;
     this.favorite = favorite;
 }
コード例 #7
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="transferCar">车辆转让保存读取接口</param>
 /// <param name="favorite">收藏接口</param>
 public CarTransferDetailController(ITransferCar transferCar,
                                    IFavorite favorite)
 {
     this.transferCar = transferCar;
     this.favorite    = favorite;
 }