Exemplo n.º 1
0
 public UserCenterController(GlobalCache gloablCache,
     ICarUserCenter carUserCenter,
     IGoodsUserCenter goodsUserCenter,
     IHouseUserCenter houseUserCenter,
     IPrivateMessage privateMessage,
     IFavorite favorite)
 {
     this.gloablCache = gloablCache;
     this.carUserCenter = carUserCenter;
     this.houseUserCenter = houseUserCenter;
     this.goodsUserCenter = goodsUserCenter;
     this.privateMessage = privateMessage;
     this.favorite = favorite;
 }
Exemplo n.º 2
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;
        }