/// <summary>
 /// Initializes a new instance of the <see cref="HostelBookingSourcesController"/> class.
 /// </summary>
 /// <param name="messageExceptionFinder">The message exception finder.</param>
 /// <param name="hostelService">The hostel service.</param>
 /// <param name="workContext">The work context.</param>
 /// <param name="bookingSourceService">The booking source service.</param>
 public HostelBookingSourcesController(
     IMessageExceptionFinder messageExceptionFinder,
     IHostelService hostelService,
     IWorkContext workContext,
     IBookingSourceService bookingSourceService) : base(messageExceptionFinder)
 {
     this.hostelService        = hostelService;
     this.workContext          = workContext;
     this.bookingSourceService = bookingSourceService;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AvailabilityController"/> class.
 /// </summary>
 /// <param name="messageExceptionFinder">The message exception finder.</param>
 /// <param name="bookingService">The booking service.</param>
 /// <param name="roomService">The room service.</param>
 /// <param name="workContext">The work context.</param>
 /// <param name="hostelService">The hostel service.</param>
 public AvailabilityController(
     IMessageExceptionFinder messageExceptionFinder,
     IBookingService bookingService,
     IRoomService roomService,
     IWorkContext workContext,
     IHostelService hostelService) : base(messageExceptionFinder, bookingService)
 {
     this.roomService   = roomService;
     this.workContext   = workContext;
     this.hostelService = hostelService;
 }
 public HostelApiController(IHostelService hostelService)
 {
     _hostelService = hostelService;
 }