Пример #1
0
        /// <summary>
        /// Get list of company insdustries 
        /// </summary>
        /// <returns></returns>
        public List<tblCompanyIndustryListDto> GetCompanyIndustries()
        {
            Mapper.CreateMap<tblCompanyIndustryList, tblCompanyIndustryListDto>();

            using (var masterDataContext = new FPMasterValuesEntities())
            {
                return Mapper.Map(masterDataContext.tblCompanyIndustryLists.ToList(), new List<tblCompanyIndustryListDto>());
            }
        }
Пример #2
0
        /// <summary>
        /// Get list of account opening fields
        /// </summary>
        /// <returns></returns>
        public List<tblAccountOpeningFieldDto> GetAccountOpeningFields()
        {
            Mapper.CreateMap<tblAccountOpeningField, tblAccountOpeningFieldDto>();

            using (var masterDataContext = new FPMasterValuesEntities())
            {
                return Mapper.Map(masterDataContext.tblAccountOpeningFields.ToList(), new List<tblAccountOpeningFieldDto>());
            }
        }
Пример #3
0
        /// <summary>
        /// Get list of countries
        /// </summary>
        /// <returns></returns>
        public List<tblCountryListDto> GetCountries()
        {
            Log4NetLogger.Info("UnifiedDataStore : In GetCountries");

            Mapper.CreateMap<tblCountryList, tblCountryListDto>();

            using (var masterDataContext = new FPMasterValuesEntities())
            {
                return Mapper.Map(masterDataContext.tblCountryLists.ToList(), new List<tblCountryListDto>());
            }
        }
Пример #4
0
        /// <summary>
        /// Get list of Country Of Operations
        /// </summary>
        /// <returns></returns>
        public List<tblCountryOfOperationDto> GetCountryOfOperations()
        {
            Mapper.CreateMap<tblCountryOfOperation, tblCountryOfOperationDto>();

            using (var masterDataContext = new FPMasterValuesEntities())
            {
                return Mapper.Map(masterDataContext.tblCountryOfOperations.ToList(), new List<tblCountryOfOperationDto>());
            }
        }
Пример #5
0
        /// <summary>
        /// Get list of UserTypes
        /// </summary>
        /// <returns></returns>
        public List<tblUserTypeDto> GetUserTypes()
        {
            Mapper.CreateMap<tblUserType, tblUserTypeDto>();

            using (var masterDataContext = new FPMasterValuesEntities())
            {
                return Mapper.Map(masterDataContext.tblUserTypes.ToList(),
                                                        new List<tblUserTypeDto>());
            }
        }
Пример #6
0
        /// <summary>
        /// Get list of Supported Languages
        /// </summary>
        /// <returns></returns>
        public List<tblSupportedLanguageDto> GetSupportedLanguages()
        {
            Mapper.CreateMap<tblSupportedLanguage, tblSupportedLanguageDto>();

            using (var masterDataContext = new FPMasterValuesEntities())
            {
                return Mapper.Map(masterDataContext.tblSupportedLanguages.ToList(),
                                                        new List<tblSupportedLanguageDto>());
            }
        }
Пример #7
0
        /// <summary>
        /// Get list of KYCStatus
        /// </summary>
        /// <returns></returns>
        public List<tblKYCStatusDto> GetKYCStatus()
        {
            Mapper.CreateMap<tblKYCStatus, tblKYCStatusDto>();

            using (var masterDataContext = new FPMasterValuesEntities())
            {
                return Mapper.Map(masterDataContext.tblKYCStatuses.ToList(), new List<tblKYCStatusDto>());
            }
        }