public async Task <IEnumerable <ClientMaster> > GetAllClients() { IAsyncRepository <ClientMaster> clientRepo = new ClientMasterRepositoryAsync(_db); try { return(await clientRepo.GetAllAsync()); } catch (Exception) { throw; } throw new NotImplementedException(); }
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; } }
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; } }