Пример #1
0
 public CityController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
              Miaow.Application.dj.Service.IListService MiaowListService,
     Miaow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService cityInfo)
     : base(work)
 {
     if (MiaowListService == null)
     {
         throw new ArgumentNullException("listService is null");
     }
     if (cityInfo == null)
     {
         throw new ArgumentNullException("cityInfoService is null");
     }
     listService = MiaowListService;
     cityInfoService = cityInfo;
 }
Пример #2
0
 public ListController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
 Miaow.Application.dj.Service.IListService MiaowListService,
     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");
     }
     if (MiaowListService == null)
     {
         throw new ArgumentNullException("listService is null");
     }
     homeService = MiaowHomeService;
     tourPlanService = MiaowTourPlanService;
     listService = MiaowListService;
 }