コード例 #1
0
ファイル: SearchController.cs プロジェクト: JPomichael/IPOW
 /// <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;
 }
コード例 #2
0
ファイル: SearchController.cs プロジェクト: JPomichael/IPOW
 /// <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;
 }