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(); }
public FrayteResult DeleteTimeZone(int timezoneId) { FrayteResult result = new FrayteResult(); result = new TimeZoneRepository().DeleteTimeZone(timezoneId); return(result); }
public List <TimeZoneModal> GetShipmentTimeZones() { List <TimeZoneModal> lstTimeZone = new List <TimeZoneModal>(); lstTimeZone = new TimeZoneRepository().GetShipmentTimeZones(); return(lstTimeZone); }
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 })); }
public TimeZoneController() { _timeZoneRepository = new TimeZoneRepository(Settings.GetStringDB()); }
public TimeZoneBusiness(IUnitOfWork _unitOfWork) { unitOfWork = _unitOfWork; timeZoneRepository = new TimeZoneRepository(unitOfWork); }
public TimeZoneRepositoryTests() { _timeZoneRepository = new TimeZoneRepository(_sql, _cache); }
public TimeZoneService() { _timeZoneRepository = new TimeZoneRepository(); }