Example #1
0
 public RolePermissionController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                                 iPow.Infrastructure.Crosscutting.Authorize.IRoleService role,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcActionService mvcAction,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerService mvcController,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcRolePermissionService rolePermission)
 {
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     if (mvcAction == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcController == null)
     {
         throw new ArgumentNullException("mvcControllerService is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionService is null");
     }
     roleService               = role;
     mvcActionService          = mvcAction;
     mvcControllerClassService = mvcControllerClass;
     mvcControllerService      = mvcController;
     mvcRolePermissionService  = rolePermission;
 }
Example #2
0
 public TourDetailController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                             iPow.Domain.Repository.ITourClassRepository tourClass,
                             iPow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
                             iPow.Domain.Repository.ITourPlanRepository tourPlan,
                             iPow.Domain.Repository.ISightInfoRepository sightInfo,
                             iPow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo)
     : base(work)
 {
     if (tourClass == null)
     {
         throw new ArgumentNullException("tourClassRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     tourClassRepository         = tourClass;
     tourPlanDetailRepository    = tourPlanDetail;
     tourPlanRepository          = tourPlan;
     sightInfoRepository         = sightInfo;
     hotelPropertyInfoRepository = hotelPropertyInfo;
 }
Example #3
0
 public UserClassController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                            iPow.Infrastructure.Crosscutting.Authorize.IAdminUserClassService userClass)
 {
     if (userClass == null)
     {
         throw new ArgumentNullException(" userClassService  is null");
     }
     userClassService = userClass;
 }
Example #4
0
 public ActionClassController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                              iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerActionClassService actionClass)
 {
     if (actionClass == null)
     {
         throw new ArgumentNullException("actionClassService is null");
     }
     actionClassService = actionClass;
 }
Example #5
0
 public HomeController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                       iPow.Application.jq.Service.IHomeService ipowHome)
     : base(work)
 {
     if (ipowHome == null)
     {
         throw new ArgumentNullException("homeService is null");
     }
     homeService = ipowHome;
 }
Example #6
0
 public UserController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                       iPow.Infrastructure.Crosscutting.Authorize.IUserService userRole)
     : base(work)
 {
     if (userRole == null)
     {
         throw new ArgumentNullException("userService is null");
     }
     userService = userRole;
 }
Example #7
0
 public RoleController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                       iPow.Infrastructure.Crosscutting.Authorize.IRoleService role)
     : base(work)
 {
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     roleService = role;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EbookController"/> class.
 /// </summary>
 /// <param name="work">The work.</param>
 /// <param name="ipowHotelEbook">The ipow hotel ebook.</param>
 public EbookController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                        iPow.Service.Union.Service.IHotelEbookService ipowHotelEbook)
     : base(work)
 {
     if (ipowHotelEbook == null)
     {
         throw new ArgumentNullException("hotelEbookService is null");
     }
     hotelEbookService = ipowHotelEbook;
 }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotelController"/> class.
 /// </summary>
 /// <param name="work">The work.</param>
 /// <param name="ipowHotelInfo">The ipow hotel info.</param>
 /// <param name="ipowHotelRoom">The ipow hotel room.</param>
 /// <param name="ipowHotelComm">The ipow hotel comm.</param>
 /// <param name="ipowHotelPic">The ipow hotel pic.</param>
 /// <param name="ipowHotelTraffic">The ipow hotel traffic.</param>
 public HotelController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                        iPow.Service.Union.Service.IHotelInfoService ipowHotelInfo,
                        iPow.Service.Union.Service.IHotelRoomService ipowHotelRoom,
                        iPow.Service.Union.Service.IHotelCommService ipowHotelComm,
                        iPow.Service.Union.Service.IHotelPicService ipowHotelPic,
                        iPow.Service.Union.Service.IHotelTrafficService ipowHotelTraffic,
                        iPow.Domain.Repository.IHotelCommRepository hotelComm,
                        iPow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo,
                        iPow.Service.Union.Service.IHotelCommSysService ipowHotelCommSys)
     : base(work)
 {
     if (ipowHotelInfo == null)
     {
         throw new ArgumentNullException("hotelInfoService is null");
     }
     if (ipowHotelRoom == null)
     {
         throw new ArgumentNullException("hotelRoomService is null");
     }
     if (ipowHotelComm == null)
     {
         throw new ArgumentNullException("hotelCommService is null");
     }
     if (ipowHotelPic == null)
     {
         throw new ArgumentNullException("hotelPicService is null");
     }
     if (ipowHotelTraffic == null)
     {
         throw new ArgumentNullException("hotelTrafficService is null");
     }
     if (hotelComm == null)
     {
         throw new ArgumentNullException("hotelCommRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     if (ipowHotelCommSys == null)
     {
         throw new ArgumentNullException("hotelCommSysService is null");
     }
     hotelInfoService            = ipowHotelInfo;
     hotelRoomService            = ipowHotelRoom;
     hotelCommService            = ipowHotelComm;
     hotelPicService             = ipowHotelPic;
     hotelTrafficService         = ipowHotelTraffic;
     hotelCommRepository         = hotelComm;
     hotelPropertyInfoRepository = hotelPropertyInfo;
     hotelCommSysService         = ipowHotelCommSys;
 }
Example #10
0
 public PicController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                      iPow.Application.jq.Service.IPicInfoService ipowPicInfo,
                      iPow.Domain.Repository.IPicCommRepository picComm)
     : base(work)
 {
     if (ipowPicInfo == null)
     {
         throw new ArgumentNullException("picInfoService is null");
     }
     if (picComm == null)
     {
         throw new ArgumentNullException("picInfoRepository is null");
     }
     picInfoService    = ipowPicInfo;
     picCommRepository = picComm;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LeftMidHotHotelController"/> class.
 /// </summary>
 /// <param name="work">The work.</param>
 /// <param name="ipowHoteLeftMid">The ipow hote left mid.</param>
 /// <param name="ipowSightInfo">The ipow sight info.</param>
 public LeftMidHotHotelController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                                  iPow.Service.Union.Service.IHotelLeftMidService ipowHoteLeftMid,
                                  iPow.Application.jq.Service.ISightInfoService ipowSightInfo)
     : base(work)
 {
     if (ipowHoteLeftMid == null)
     {
         throw new ArgumentNullException("hoteLeftMidService is null");
     }
     if (ipowSightInfo == null)
     {
         throw new ArgumentNullException("sightInfoService is null");
     }
     hoteLeftMidService = ipowHoteLeftMid;
     sightInfoService   = ipowSightInfo;
 }
Example #12
0
 public CityController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                       iPow.Application.dj.Service.IListService ipowListService,
                       iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService cityInfo)
     : base(work)
 {
     if (ipowListService == null)
     {
         throw new ArgumentNullException("listService is null");
     }
     if (cityInfo == null)
     {
         throw new ArgumentNullException("cityInfoService is null");
     }
     listService     = ipowListService;
     cityInfoService = cityInfo;
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchController"/> class.
 /// </summary>
 /// <param name="work">The work.</param>
 /// <param name="ipowHotelSearch">The ipow hotel search.</param>
 /// <param name="ipowHotelType">Type of the ipow hotel.</param>
 public SearchController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                         iPow.Service.Union.Service.IHotelSearchService ipowHotelSearch,
                         iPow.Service.Union.Service.IHotelTypeService ipowHotelType)
     : base(work)
 {
     if (ipowHotelSearch == null)
     {
         throw new ArgumentNullException("hotelSearchService is null");
     }
     if (ipowHotelType == null)
     {
         throw new ArgumentNullException("hotelTypeService is null");
     }
     hotelSearchService = ipowHotelSearch;
     hotelTypeService   = ipowHotelType;
 }
Example #14
0
 public ProfileController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                          iPow.Infrastructure.Crosscutting.Authorize.IUserService user,
                          iPow.Infrastructure.Crosscutting.Comm.Service.IFormsAuthService formAuth)
     : base(work)
 {
     if (user == null)
     {
         throw new ArgumentNullException("userService is null");
     }
     if (formAuth == null)
     {
         throw new ArgumentNullException("formAuthService is null");
     }
     userService     = user;
     formAuthService = formAuth;
 }
Example #15
0
 public SearchController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                         iPow.Application.jq.Service.ISearchService ipowSearch,
                         iPow.Domain.Repository.ISightInfoRepository sightInfo)
     : base(work)
 {
     if (ipowSearch == null)
     {
         throw new ArgumentNullException("searchService is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     searchService       = ipowSearch;
     sightInfoRepository = sightInfo;
 }
Example #16
0
 public ArticleController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                          iPow.Application.jq.Service.IArticleService article,
                          iPow.Domain.Repository.IArticleCommRepository articleComm)
     : base(work)
 {
     if (article == null)
     {
         throw new ArgumentNullException("articleService is null");
     }
     if (articleComm == null)
     {
         throw new ArgumentNullException("articleCommRepository is null");
     }
     articleService        = article;
     articleCommRepository = articleComm;
 }
Example #17
0
 public SightDetailController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                              iPow.Application.jq.Service.ISightInfoService ipowSightInfo,
                              iPow.Domain.Repository.ISightCommRepository sightComm)
     : base(work)
 {
     if (ipowSightInfo == null)
     {
         throw new ArgumentNullException("sightInfoServiceis null");
     }
     if (sightComm == null)
     {
         throw new ArgumentNullException("sightCommRepository null");
     }
     sightInfoService    = ipowSightInfo;
     sightCommRepository = sightComm;
 }
Example #18
0
 public TourController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                       iPow.Application.dj.Service.ITourPlanService ipowTourPlanService,
                       iPow.Domain.Repository.ITourPlanRepository tourPlan)
     : base(work)
 {
     if (ipowTourPlanService == null)
     {
         throw new ArgumentNullException("tourPlanService is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     tourPlanService    = ipowTourPlanService;
     tourPlanRepository = tourPlan;
 }
Example #19
0
 public CatalogController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                          iPow.Application.dj.Service.IListService ipowListService,
                          iPow.Application.dj.Service.IHomeService ipowHomeService,
                          iPow.Application.dj.Service.ITourPlanService ipowTourPlanService)
     : base(work)
 {
     if (ipowHomeService == null)
     {
         throw new ArgumentNullException("homeService is null");
     }
     if (ipowTourPlanService == null)
     {
         throw new ArgumentNullException("tourPlanService is null");
     }
     if (ipowListService == null)
     {
         throw new ArgumentNullException("listService is null");
     }
     homeService     = ipowHomeService;
     tourPlanService = ipowTourPlanService;
     listService     = ipowListService;
 }
Example #20
0
 public TourController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                       iPow.Domain.Repository.ITourClassRepository tourClass,
                       iPow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
                       iPow.Domain.Repository.ITourPlanRepository tourPlan)
     : base(work)
 {
     if (tourClass == null)
     {
         throw new ArgumentNullException("tourClassRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     tourClassRepository      = tourClass;
     tourPlanDetailRepository = tourPlanDetail;
     tourPlanRepository       = tourPlan;
 }
Example #21
0
 public SightOtherController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                             iPow.Application.jq.Service.ITicketService ipowTicket,
                             iPow.Application.jq.Service.IPicInfoService ipowPicInfo,
                             iPow.Application.jq.Service.IArticleService ipowArticle)
     : base(work)
 {
     if (ipowTicket == null)
     {
         throw new ArgumentNullException("ticketService is null");
     }
     if (ipowPicInfo == null)
     {
         throw new ArgumentNullException("picInfoService is null");
     }
     if (ipowArticle == null)
     {
         throw new ArgumentNullException("articleService is null");
     }
     ticketService  = ipowTicket;
     picInfoService = ipowPicInfo;
     articleService = ipowArticle;
 }
Example #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RightTodayLowPriceHotHotelController"/> class.
 /// </summary>
 public RightTodayLowPriceHotHotelController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                                             iPow.Infrastructure.Crosscutting.Comm.Service.ILocationService ipowLocaltion,
                                             iPow.Service.Union.Service.ITodayLowPriceService ipowTodayLowPrice,
                                             iPow.Service.Union.Service.ICityService ipowCity)
     : base(work)
 {
     if (ipowLocaltion == null)
     {
         throw new ArgumentNullException("localtionService is null");
     }
     if (ipowTodayLowPrice == null)
     {
         throw new ArgumentNullException("todayLowPriceService is null");
     }
     if (ipowCity == null)
     {
         throw new ArgumentNullException("cityService is null");
     }
     localtionService     = ipowLocaltion;
     todayLowPriceService = ipowTodayLowPrice;
     cityService          = ipowCity;
 }
Example #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 /// <param name="work">The work.</param>
 public HomeController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work)
     : base(work)
 {
 }