private async Task CreateClientMasterRecord(IDbConnection db, ClientMaster client)
        {
            IAsyncRepository <ClientMaster> clientMasterRepo = new ClientMasterRepositoryAsync(db);

            try
            {
                await clientMasterRepo.AddAsync(client);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
        public async Task <IEnumerable <ClientMaster> > GetAllClients()
        {
            IAsyncRepository <ClientMaster> clientRepo = new ClientMasterRepositoryAsync(_db);

            try
            {
                return(await clientRepo.GetAllAsync());
            }
            catch (Exception)
            {
                throw;
            }
            throw new NotImplementedException();
        }
Ejemplo n.º 4
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;
            }
        }