Пример #1
0
 public HomeController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Application.jq.Service.IHomeService MiaowHome)
     : base(work)
 {
     if (MiaowHome == null)
     {
         throw new ArgumentNullException("homeService is null");
     }
     homeService = MiaowHome;
 }
Пример #2
0
 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;
 }