public void LoadList(ILookupServiceRepository lookupServiceRepository) { this.ListCareerLevel = lookupServiceRepository.GetAllCareerLevel(); this.ListManager = lookupServiceRepository.GetAllManager(); this.ListStaffManager = lookupServiceRepository.GetAllStaffManager(); this.ListOfficeLocation = lookupServiceRepository.GetAllOfficeLocation(); }
public UserManagementController(IUserManagementRepository userManagementRepository, ILookupServiceRepository lookupServiceRepository) { this._lookupServiceRepository = lookupServiceRepository; this._lookupServiceRepository.ServiceHeaders = PresentationUtility.GetBasicHeaders(new string[] { pmsVariable.ServiceHeaderKey.EmployeeId, pmsVariable.ServiceHeaderKey.UserName, pmsVariable.ServiceHeaderKey.Email }); this._userManagementRepository = userManagementRepository; this._userManagementRepository.ServiceHeaders = PresentationUtility.GetBasicHeaders(new string[] { pmsVariable.ServiceHeaderKey.EmployeeId, pmsVariable.ServiceHeaderKey.UserName, pmsVariable.ServiceHeaderKey.Email }); }
public void LoadCountryObject(ILookupServiceRepository lookupServiceRepository) { ICountry country = default(Country); if (CountryId != string.Empty) { IList <ICountry> countries = lookupServiceRepository.GetAllCountry(); if (countries.Count != 0) { country = countries.SingleOrDefault(x => x.Id == CountryId); } } this.CountryObject = country; }
public static IList <ICountry> GetCountries1(ILookupServiceRepository lookupServiceRepository) { string cacheKey = LanguagePrefix() + CacheKeys.CountryList; object countries = CacheManager.Get(cacheKey); if (countries == null) { IList <ICountry> returnList = lookupServiceRepository.GetAllCountry(); CacheManager.Add(cacheKey, returnList); return(returnList); } else { return((IList <ICountry>)countries); } }
public void LoadList(ILookupServiceRepository lookupServiceRepository) { this.ListCountry = lookupServiceRepository.GetAllCountry(); }