public UserLaneService(LoadshopDataContext context, ICommonService commonService, ISecurityService securityService, IMapper mapper)
 {
     _context         = context;
     _commonService   = commonService;
     _securityService = securityService;
     _mapper          = mapper;
 }
 public LoadCarrierGroupService(LoadshopDataContext context, ICommonService commonService, IMapper mapper, IUserContext userContext, ISecurityService securityService)
 {
     _context         = context;
     _commonService   = commonService;
     _mapper          = mapper;
     _userContext     = userContext;
     _securityService = securityService;
 }
Exemple #3
0
 public AddressValidationService(LoadshopDataContext context, IConfigurationRoot configuration, HttpClient client)
 {
     _context = context;
     _client  = client;
     bool.TryParse(configuration["AddressValidationEnabled"], out _isValidationEnabled);
     _baseUrl = configuration["GoogleGeocodingApiUrl"];
     _apiKey  = configuration["GoogleApiKey"];
 }
 public SecurityService(LoadshopDataContext context, IUserContext userContext, IMapper mapper, ILogger <SecurityService> logger, IDateTimeProvider dateTime, LoadShopCacheManager cache)
 {
     _context     = context;
     _userContext = userContext;
     _mapper      = mapper;
     _logger      = logger;
     _dateTime    = dateTime;
     _cache       = cache;
 }
Exemple #5
0
 public Utilities(LoadshopDataContext context, IConfigurationRoot config, HttpClient client, IUserContext userContext, ICommonService commonService, ILoadService loadService)
 {
     _config        = config;
     _client        = client;
     _context       = context;
     _userContext   = userContext;
     _commonService = commonService;
     _loadService   = loadService;
 }
Exemple #6
0
 public FeedbackIntegrationService(IFeedbackClient client, IConfigurationRoot config, IMapper mapper,
                                   LoadshopDataContext context, IUserContext userContext, ISecurityService securityService)
 {
     _client          = client;
     _config          = config;
     _mapper          = mapper;
     _context         = context;
     _userContext     = userContext;
     _securityService = securityService;
 }
Exemple #7
0
 public AgreementDocumentService(LoadshopDataContext context,
                                 IMapper mapper,
                                 IUserContext userContext,
                                 ISecurityService securityService)
 {
     this.context         = context;
     this.mapper          = mapper;
     this.userContext     = userContext;
     this.securityService = securityService;
 }
 public ShipperAdminService(LoadshopDataContext context, ISecurityService securityService, IMapper mapper,
                            ITopsLoadshopApiService topsLoadshopApiService, IUserAdminService userAdminService,
                            INotificationService notificationService, IUserContext userContext)
 {
     _context                = context;
     _securityService        = securityService;
     _mapper                 = mapper;
     _topsLoadshopApiService = topsLoadshopApiService;
     _userAdminService       = userAdminService;
     _notificationService    = notificationService;
     _userContext            = userContext;
 }
Exemple #9
0
 public LoadStatusTransactionService(
     LoadshopDataContext context,
     IMapper mapper,
     IUserContext userContext,
     ISecurityService securityService,
     ICarrierWebAPIService carrierWebAPIService)
 {
     _context              = context;
     _mapper               = mapper;
     _userContext          = userContext;
     _securityService      = securityService;
     _carrierWebAPIService = carrierWebAPIService;
 }
Exemple #10
0
 public UserCacheManager(
     LoadshopDataContext context,
     IMapper mapper,
     ILogger <UserCacheManager> logger,
     IDateTimeProvider dateTimeProvider,
     IAppCache cache)
 {
     _context  = context;
     _mapper   = mapper;
     _dateTime = dateTimeProvider;
     _cache    = cache;
     _logger   = logger;
 }
Exemple #11
0
 public SpecialInstructionsService(LoadshopDataContext context,
                                   IMapper mapper,
                                   IUserContext userContext,
                                   ISecurityService securityService,
                                   ICommonService commonService,
                                   IHtmlSanitizer htmlSanitizer)
 {
     _context         = context;
     _mapper          = mapper;
     _userContext     = userContext;
     _securityService = securityService;
     _commonService   = commonService;
     _htmlSanitizer   = htmlSanitizer;
 }
Exemple #12
0
 public LoadshopDocumentService(LoadshopDataContext context,
                                IDocumentApiClient documentApiClient,
                                IUserContext userContext,
                                ILogger <LoadshopDocumentService> logger,
                                IMapper mapper,
                                ISecurityService securityService)
 {
     this.context           = context;
     this.documentApiClient = documentApiClient;
     this.userContext       = userContext;
     this.logger            = logger;
     this.mapper            = mapper;
     this.securityService   = securityService;
 }
Exemple #13
0
 public RatingService(LoadshopDataContext context,
                      IMapper mapper,
                      IUserContext userContext,
                      ISecurityService securityService,
                      ICommonService commonService,
                      ServiceUtilities serviceUtilities)
 {
     _context          = context;
     _mapper           = mapper;
     _userContext      = userContext;
     _securityService  = securityService;
     _commonService    = commonService;
     _serviceUtilities = serviceUtilities;
 }
 public UserProfileService(LoadshopDataContext context,
                           IMapper mapper,
                           ICarrierService carrierService,
                           ICommonService commonService,
                           ISecurityService securityService,
                           IUserContext userContext,
                           ISMSService smsService,
                           IAgreementDocumentService agreementDocumentService)
 {
     _context                  = context;
     _mapper                   = mapper;
     _carrierService           = carrierService;
     _commonService            = commonService;
     _securityService          = securityService;
     _userContext              = userContext;
     _smsService               = smsService;
     _agreementDocumentService = agreementDocumentService;
 }
Exemple #15
0
        /// <summary>
        /// Gets the contract rate for a load
        /// </summary>
        /// <param name="context"></param>
        /// <param name="loadId"></param>
        /// <param name="userId"></param>
        /// <returns name="result"></returns>
        public decimal?GetContractRate(LoadshopDataContext context, Guid loadId, Guid userId)
        {
            decimal?result = null;

            var user = context.Users.Where(x => x.IdentUserId == userId).FirstOrDefault();

            if (user != null && !string.IsNullOrWhiteSpace(user.PrimaryScac))
            {
                var loadScac = context.LoadCarrierScacs
                               .Include(x => x.CarrierScac)
                               .SingleOrDefault(x => x.LoadId == loadId && x.Scac == user.PrimaryScac);
                if (loadScac != null)
                {
                    result = !loadScac.CarrierScac.IsDedicated ? loadScac.ContractRate : null;
                }
            }

            return(result);
        }
Exemple #16
0
 public SmartSpotPriceService(SmartSpotPriceConfig config, LoadshopDataContext context, IMapper mapper,
                              HttpClient httpClient,
                              IUserContext userContext,
                              IRecaptchaService recaptchaService,
                              IMileageService mileageService,
                              ISecurityService securityService,
                              ILoadCarrierGroupService loadCarrierGroupService,
                              IShippingService shippingService)
 {
     _config                  = config;
     _db                      = context;
     _mapper                  = mapper;
     _httpClient              = httpClient;
     _userContext             = userContext;
     _recaptchaService        = recaptchaService;
     _mileageService          = mileageService;
     _securityService         = securityService;
     _loadCarrierGroupService = loadCarrierGroupService;
     _shippingService         = shippingService;
 }
Exemple #17
0
 public ShippingService(
     LoadshopDataContext context,
     IMapper mapper,
     IUserContext userContext,
     ISecurityService securityService,
     ICommonService commonService,
     INotificationService notificationService,
     IRatingService ratingService,
     IDateTimeProvider dateTime,
     ServiceUtilities serviceUtilities)
 {
     _context             = context;
     _mapper              = mapper;
     _serviceUtilities    = serviceUtilities;
     _userContext         = userContext;
     _securityService     = securityService;
     _commonService       = commonService;
     _notificationService = notificationService;
     _ratingService       = ratingService;
     _dateTime            = dateTime;
 }
 public LocationService(LoadshopDataContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public UnitOfMeasureService(LoadshopDataContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public CommodityService(LoadshopDataContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemple #21
0
 public EquipmentService(LoadshopDataContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public CarrierService(LoadshopDataContext db, IMapper mapper, IDateTimeProvider dateTime)
 {
     _db       = db;
     _mapper   = mapper;
     _dateTime = dateTime;
 }
Exemple #23
0
 public ServiceTypeService(LoadshopDataContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public LoadQueryRepository(LoadshopDataContext loadshopDataContext, ISecurityService securityService, IDateTimeProvider dateTimeProvider)
 {
     _securityService  = securityService;
     _dateTimeProvider = dateTimeProvider;
     _context          = loadshopDataContext;
 }
Exemple #25
0
 public CustomerService(LoadshopDataContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemple #26
0
 public CustomerTransactionLogService(LoadshopDataContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public LoadValidationService(LoadshopDataContext context, IAddressValidationService addressValidationService)
 {
     _context = context;
     _addressValidationService = addressValidationService;
 }