public List <CustomerFinancePropertyModel> Provide(Guid customerFinanceId)
        {
            var subscriberId    = UserContext.Current.SubscriberId;
            var customerFinance = _customerFinanceSearchRepository.GetModel(subscriberId, customerFinanceId);

            return(_customerFinanceCategoryPropertyProvider.ProvideAssociations(customerFinance.CategoryId));
        }
Example #2
0
        public CustomerFinanceModel GetCustomerFinance(Guid financeId)
        {
            var subscriberId = UserContext.Current.SubscriberId;
            var finance      = _financeSearchRepository.GetModel(subscriberId, financeId);
            var properties   = _financePropertyValueSearchRepository.GetPropertyValues(subscriberId, financeId);

            finance.Properties = properties;
            return(finance);
        }