예제 #1
0
        public async Task <IEnumerable <ClientMaster> > GetAllClients()
        {
            IAsyncRepository <ClientMaster> clientRepo = new ClientMasterRepositoryAsync(_db);

            try
            {
                return(await clientRepo.GetAllAsync());
            }
            catch (Exception)
            {
                throw;
            }
            throw new NotImplementedException();
        }
예제 #2
0
        public async Task <IEnumerable <ClientMaster> > GetClientRecords(IDbConnection db)
        {
            var processer = new DataProcesser(db);

            try
            {
                IAsyncRepository <ClientMaster> clientRepo = new ClientMasterRepositoryAsync(db);
                return(await clientRepo.GetAllAsync());
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
예제 #3
0
        private async Task GetClientMaster(IDbConnection db)
        {
            try
            {
                //lblStatus.Text = "Getting Client Records";
                IAsyncRepository <ClientMaster> clientRepo = new ClientMasterRepositoryAsync(db);
                _clientMasterRecords = await clientRepo.GetAllAsync();

                ClientMasterRecords_ToDropDownList(_clientMasterRecords);
                ClientDataToForm(_clientMasterRecords);
                //lblStatus.Text = "Done";
            }
            catch (SqlException)
            {
                throw;
            }
        }