コード例 #1
0
        public async Task <List <DatePaid> > GetDatePaidAsync(Employer employer, int cchId)
        {
            if (cchId < 1)
            {
                throw new InvalidOperationException("Invalid member context.");
            }

            if (employer == null || string.IsNullOrWhiteSpace(employer.ConnectionString))
            {
                throw new InvalidOperationException("Invalid employer context.");
            }

            _repository.Initialize(employer.ConnectionString);

            var result = await _repository.GetDatesPaidAsync(cchId);

            return(result);
        }