Esempio n. 1
0
        public List <FeeSchedule> GetFeeSchedulesByCompany(Company company)
        {
            if (company == null)
            {
                throw new ArgumentNullException(nameof(company));
            }

            return(ExecuteFaultHandledOperation(() =>
            {
                var fee_schedules = new List <FeeSchedule>();
                var comp = new CompanyData()
                {
                    CompanyKey = company.CompanyKey
                };
                var fee_schedule_data = _fee_schedule_repo.GetAll(comp);

                foreach (FeeScheduleData fee_sched in fee_schedule_data)
                {
                    var fee_schedule = _fee_sched_es.Map(fee_sched);
                    fee_schedules.Add(fee_schedule);
                }
                return fee_schedules;
            }));
        }
 public List <FeeSchedule> GetFeeSchedulesByAccount(Account account)
 {
     return(ExecuteHandledOperation(() => { return _feeScheduleEntityService.Map(_feeScheduleRepository.GetAll(_accountEntityService.Map(account))); }));
 }