/// <summary> /// Initializes a new instance of the <see cref="HomeService"/> class. /// </summary> /// <param name="tpService">The tp service.</param> public HomeService(Miaow.Application.dj.Service.ITourPlanService tpService) { if (tpService == null) { throw new ArgumentNullException("tourPlanService is null"); } tourPlanService = tpService; }
public TourController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Application.dj.Service.ITourPlanService MiaowTourPlanService, Miaow.Domain.Repository.ITourPlanRepository tourPlan) : base(work) { if (MiaowTourPlanService == null) { throw new ArgumentNullException("tourPlanService is null"); } if (tourPlan == null) { throw new ArgumentNullException("tourPlanRepository is null"); } tourPlanService = MiaowTourPlanService; tourPlanRepository = tourPlan; }
public HomeController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Application.dj.Service.IHomeService MiaowHomeService, Miaow.Application.dj.Service.ITourPlanService MiaowTourPlanService) : base(work) { if (MiaowHomeService == null) { throw new ArgumentNullException("homeService is null"); } if (MiaowTourPlanService == null) { throw new ArgumentNullException("tourPlanService is null"); } homeService = MiaowHomeService; tourPlanService = MiaowTourPlanService; }
public HomeController(Miaow.Application.jq.Service.IHomeService MiaowHome, Miaow.Application.dj.Service.ITourPlanService tour, Miaow.Application.account.Service.ISightInfoService Sight, Miaow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService city, Miaow.Application.account.Service.ITourPlanDetailService tourPlan, Miaow.Application.account.Service.ICityInfoMoreService cityInfoMore, Miaow.Application.account.Service.IHotelPropertyInfoService hotelPrpertyInfo ) { if (hotelPrpertyInfo == null) { throw new ArgumentNullException("hotelPrpertyInfoService"); } if (MiaowHome == 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 = MiaowHome; SightInfo = Sight; cityInfoService = city; tourPlanDetailService = tourPlan; cityInfoMoreService = cityInfoMore; hotelPrpertyInfoService = hotelPrpertyInfo; }