コード例 #1
0
        public HttpResponseMessage GetInitials()
        {
            List <WorkingWeekDay> lstWeekDays = new List <WorkingWeekDay>();

            lstWeekDays = new WeekDaysRepository().GetWeekDaysDataList();

            List <FrayteCountryCode> lstCountry = new List <FrayteCountryCode>();

            lstCountry = new CountryRepository().lstCountry();

            List <FrayteCountryPhoneCode> lstCountryPhones = new List <FrayteCountryPhoneCode>();

            lstCountryPhones = new CountryRepository().GetCountryPhoneCodeList();

            List <TimeZoneModal> lstTimeZone = new List <TimeZoneModal>();

            lstTimeZone = new TimeZoneRepository().GetShipmentTimeZones();

            TimeZoneModal operationTimeZone = new TimeZoneRepository().GetOperationTimezone();

            return(this.Request.CreateResponse(
                       HttpStatusCode.OK,
                       new
            {
                WorkingWeekDays = lstWeekDays,
                Countries = lstCountry,
                TimeZones = lstTimeZone,
                CountryPhoneCodes = lstCountryPhones,
                OperationTimeZone = operationTimeZone
            }));
        }
コード例 #2
0
 public LocationService()
 {
     _locationRepository = new LocationRepository();
     _countryRepository  = new CountryRepository();
     _timeZoneRepository = new TimeZoneRepository();
     _sortingService     = new SortingService();
     _paginationService  = new PaginationService();
 }
コード例 #3
0
        public FrayteResult DeleteTimeZone(int timezoneId)
        {
            FrayteResult result = new FrayteResult();

            result = new TimeZoneRepository().DeleteTimeZone(timezoneId);

            return(result);
        }
コード例 #4
0
        public List <TimeZoneModal> GetShipmentTimeZones()
        {
            List <TimeZoneModal> lstTimeZone = new List <TimeZoneModal>();

            lstTimeZone = new TimeZoneRepository().GetShipmentTimeZones();

            return(lstTimeZone);
        }
コード例 #5
0
        public List <FrayteTimeZone> GetTimeZoneList()
        {
            List <FrayteTimeZone> lstTimeZone = new List <FrayteTimeZone>();

            lstTimeZone = new TimeZoneRepository().GetTimeZoneList();

            return(lstTimeZone);
        }
コード例 #6
0
        public HttpResponseMessage BookingInitials(int userId)
        {
            //Step 1: Get Country list
            List <FrayteCountryCode> lstCountry = new List <FrayteCountryCode>();

            lstCountry = new CountryRepository().lstCountry();

            //Step 2: Get Shipment Hanler Methods
            var lstShipmentHandlerMethods = new MasterDataRepository().GetShipmentHandlerMethod();

            //Step 3: Get Currency
            var lstCurrencyTypes = new MasterDataRepository().GetCurrencyType();

            //Step4: Get Customer Detail
            var customerDetail = new TradelaneBookingRepository().GetCustomerDetail(userId);
            //Step4.1: Get Customer Detail
            var customerAddress = new TradelaneBookingRepository().UserDefaultAddresses(userId);

            // Step 5 : Get Country PhoneCode
            List <FrayteCountryPhoneCode> lstCountryPhones = new List <FrayteCountryPhoneCode>();

            lstCountryPhones = new CountryRepository().GetCountryPhoneCodeList();

            // step:6 get all operation zones
            var OperaionZones = new OperationZoneRepository().GetOperationZone();

            // step:7 get all Airlines
            var listAirlines = new MasterDataRepository().GetAirlines();

            var timeZones = new TimeZoneRepository().GetShipmentTimeZones();

            var lstincoterm = new BreakBulkRepository().GetIncoterms();

            return(this.Request.CreateResponse(
                       HttpStatusCode.OK,
                       new
            {
                Countries = lstCountry,
                CurrencyTypes = lstCurrencyTypes,
                ShipmentMethods = lstShipmentHandlerMethods,
                CustomerDetail = customerDetail,
                CustomerAddress = customerAddress,
                CountryPhoneCodes = lstCountryPhones,
                AirLines = listAirlines,
                TimeZones = timeZones,
                OperaionZones = OperaionZones,
                Incoterm = lstincoterm
            }));
        }
コード例 #7
0
 public TimeZoneController()
 {
     _timeZoneRepository = new TimeZoneRepository(Settings.GetStringDB());
 }
コード例 #8
0
 public TimeZoneBusiness(IUnitOfWork _unitOfWork)
 {
     unitOfWork         = _unitOfWork;
     timeZoneRepository = new TimeZoneRepository(unitOfWork);
 }
コード例 #9
0
 public TimeZoneRepositoryTests()
 {
     _timeZoneRepository = new TimeZoneRepository(_sql, _cache);
 }
コード例 #10
0
 public TimeZoneService()
 {
     _timeZoneRepository = new TimeZoneRepository();
 }