public async Task <IEnumerable <UserLogin> > GetUserLoginRecords(Guid clientKey, Guid clientLocationKey) { try { IAsyncRepository <UserLogin> userLoginsRepo = new UserLoginsRepositoryAsync(_db); return(await userLoginsRepo.FindWith2GuidsAsync(clientKey, clientLocationKey)); } catch (SqlException ex) { throw ex; } }
private async Task <IEnumerable <UserLogin> > GetUserLoginRecords(IDbConnection db) { var clientKey = Guid.Parse(txtClientKey.Text); var clientLocationKey = Guid.Parse(txtClientLocationKey.Text); try { IAsyncRepository <UserLogin> userLoginsRepo = new UserLoginsRepositoryAsync(db); return(await userLoginsRepo.FindWith2GuidsAsync(clientKey, clientLocationKey)); } catch (Exception) { throw; } }