Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeService"/> class.
 /// </summary>
 /// <param name="tpService">The tp service.</param>
 public HomeService(iPow.Application.dj.Service.ITourPlanService tpService)
 {
     if (tpService == null)
     {
         throw new ArgumentNullException("tourPlanService is null");
     }
     tourPlanService = tpService;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeService"/> class.
 /// </summary>
 /// <param name="tpService">The tp service.</param>
 public HomeService(iPow.Application.dj.Service.ITourPlanService tpService)
 {
     if (tpService == null)
     {
         throw new ArgumentNullException("tourPlanService is null");
     }
     tourPlanService = tpService;
 }
Example #3
0
 public HomeController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                       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");
     }
     homeService     = ipowHomeService;
     tourPlanService = ipowTourPlanService;
 }
Example #4
0
 public HomeController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     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");
     }
     homeService = ipowHomeService;
     tourPlanService = ipowTourPlanService;
 }
Example #5
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 #6
0
 public HomeController(iPow.Application.jq.Service.IHomeService ipowHome,
                       iPow.Application.dj.Service.ITourPlanService tour,
                       iPow.Application.account.Service.ISightInfoService Sight,
                       iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService city,
                       iPow.Application.account.Service.ITourPlanDetailService tourPlan,
                       iPow.Application.account.Service.ICityInfoMoreService cityInfoMore,
                       iPow.Application.account.Service.IHotelPropertyInfoService hotelPrpertyInfo
                       )
 {
     if (hotelPrpertyInfo == null)
     {
         throw new ArgumentNullException("hotelPrpertyInfoService");
     }
     if (ipowHome == null)
     {
         throw new ArgumentNullException("homeService is null");
     }
     if (tour == null)
     {
         throw new ArgumentNullException("tourPlanService is null");
     }
     if (Sight == null)
     {
         throw new ArgumentNullException("SightInfoService is null");
     }
     if (city == null)
     {
         throw new ArgumentNullException("cityInfoService in null ");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("TourPlanDetailService");
     }
     if (cityInfoMore == null)
     {
         throw new ArgumentNullException("cityInfoMoreService");
     }
     tourPlanService         = tour;
     homeService             = ipowHome;
     SightInfo               = Sight;
     cityInfoService         = city;
     tourPlanDetailService   = tourPlan;
     cityInfoMoreService     = cityInfoMore;
     hotelPrpertyInfoService = hotelPrpertyInfo;
 }
Example #7
0
 public HomeController(iPow.Application.jq.Service.IHomeService ipowHome,
     iPow.Application.dj.Service.ITourPlanService tour,
     iPow.Application.account.Service.ISightInfoService Sight,
     iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService city,
     iPow.Application.account.Service.ITourPlanDetailService tourPlan,
     iPow.Application.account.Service.ICityInfoMoreService cityInfoMore,
     iPow.Application.account.Service.IHotelPropertyInfoService hotelPrpertyInfo
     )
 {
     if (hotelPrpertyInfo == null)
     {
         throw new ArgumentNullException("hotelPrpertyInfoService");
     }
     if (ipowHome == null)
     {
         throw new ArgumentNullException("homeService is null");
     }
     if (tour == null)
     {
         throw new ArgumentNullException("tourPlanService is null");
     }
     if (Sight == null)
     {
         throw new ArgumentNullException("SightInfoService is null");
     }
     if (city == null)
     {
         throw new ArgumentNullException("cityInfoService in null ");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("TourPlanDetailService");
     }
     if (cityInfoMore == null)
     {
         throw new ArgumentNullException("cityInfoMoreService");
     }
     tourPlanService = tour;
     homeService = ipowHome;
     SightInfo = Sight;
     cityInfoService = city;
     tourPlanDetailService = tourPlan;
     cityInfoMoreService = cityInfoMore;
     hotelPrpertyInfoService = hotelPrpertyInfo;
 }