コード例 #1
0
 public TransporterDetail(ITransporterDataService transporterDataService, IMapper mapper, ISupplierDataService supplierDataService, ILogger <TransporterDetail> logger)
 {
     _transporterDataService = transporterDataService;
     _mapper = mapper;
     _supplierDataService = supplierDataService;
     _logger = logger;
 }
コード例 #2
0
 public ReservedBookingsIndexModel(IBookingDataService _bookingDataService, ITransporterDataService _transporterDataService, IIntervalDataService intervalDataService, IUserUtility userUtility)
 {
     _intervalDataService   = intervalDataService;
     _userUtility           = userUtility;
     BookingDataService     = _bookingDataService;
     TransporterDataService = _transporterDataService;
 }
コード例 #3
0
 public CreateBookingAdminModel(IBookingDataService _bookingDataService, IInactiveBookingDataService _inactiveBookingDataService,
                                ITransporterDataService _transporterDataService, IUtilBookingDataService _utilBookingDataService)
 {
     bookingDataService         = _bookingDataService;
     inactiveBookingDataService = _inactiveBookingDataService;
     transporterDataService     = _transporterDataService;
     utilBookingDataService     = _utilBookingDataService;
     Booking = new BookingViewModel();
     Booking.OrdersListViewModel = new List <OrderViewModel>();
     Booking.OrdersListViewModel.Add(new OrderViewModel());
     Booking.OrdersListViewModel.Add(new OrderViewModel());
     foreach (var order in Booking.OrdersListViewModel)
     {
         order.SupplierViewModel = new SupplierViewModel();
     }
     Orders = new List <OrderViewModel>();
     for (int i = 0; i < 2; i++)
     {
         Orders.Add(new OrderViewModel());
     }
 }
コード例 #4
0
 public Transporter_CreateModel(ITransporterDataService transporterDataService, IMapper mapper, IApplicationUserDataService applicationUserDataService)
 {
     _transporterDataService = transporterDataService;
     _mapper = mapper;
     _applicationUserDataService = applicationUserDataService;
 }
コード例 #5
0
        private async Task <List <TransporterViewModel> > PopulateList(ITransporterDataService transporterDataService, List <TransporterViewModel> Transporters)
        {
            var TransportersEnumerable = await transporterDataService.ListTransporters(0, 0);

            return(TransportersEnumerable.Transporters);
        }
コード例 #6
0
 public TransportersModel(ITransporterDataService _transporterDataService)
 {
     transporterDataService = _transporterDataService;
 }
コード例 #7
0
 public AllSchedules(IMasterScheduleDataService masterScheduleDataService, ITransporterDataService transporterDataService)
 {
     _masterScheduleDataService = masterScheduleDataService;
     _transporterDataService    = transporterDataService;
 }
コード例 #8
0
 public IndexModel(ITransporterDataService _transporterDataService)
 {
     transporterDataService = _transporterDataService;
 }
コード例 #9
0
 public UserViewComponent(ITransporterDataService transporterDataService, IApplicationUserDataService applicationUserDataService, ILogger <UserViewComponent> logger)
 {
     _transporterDataService     = transporterDataService;
     _applicationUserDataService = applicationUserDataService;
     _logger = logger;
 }