Ejemplo n.º 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
            }));
        }
 public LocationService()
 {
     _locationRepository = new LocationRepository();
     _countryRepository  = new CountryRepository();
     _timeZoneRepository = new TimeZoneRepository();
     _sortingService     = new SortingService();
     _paginationService  = new PaginationService();
 }
Ejemplo n.º 3
0
        public FrayteResult DeleteTimeZone(int timezoneId)
        {
            FrayteResult result = new FrayteResult();

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

            return(result);
        }
Ejemplo n.º 4
0
        public List <TimeZoneModal> GetShipmentTimeZones()
        {
            List <TimeZoneModal> lstTimeZone = new List <TimeZoneModal>();

            lstTimeZone = new TimeZoneRepository().GetShipmentTimeZones();

            return(lstTimeZone);
        }
Ejemplo n.º 5
0
        public List <FrayteTimeZone> GetTimeZoneList()
        {
            List <FrayteTimeZone> lstTimeZone = new List <FrayteTimeZone>();

            lstTimeZone = new TimeZoneRepository().GetTimeZoneList();

            return(lstTimeZone);
        }
        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
            }));
        }
Ejemplo n.º 7
0
 public TimeZoneController()
 {
     _timeZoneRepository = new TimeZoneRepository(Settings.GetStringDB());
 }
Ejemplo n.º 8
0
 public TimeZoneBusiness(IUnitOfWork _unitOfWork)
 {
     unitOfWork         = _unitOfWork;
     timeZoneRepository = new TimeZoneRepository(unitOfWork);
 }
 public TimeZoneRepositoryTests()
 {
     _timeZoneRepository = new TimeZoneRepository(_sql, _cache);
 }
Ejemplo n.º 10
0
 public TimeZoneService()
 {
     _timeZoneRepository = new TimeZoneRepository();
 }