public async void Get_Client_Scripts_Async_Test() { var clientKey = new Guid("C55C99A5-E0CF-4023-AD29-BE262C9B2939"); IAsyncRepository <ClientScript> clientScriptsRepo = new ClientScriptsAsyncRepostiory(_iAgentDevDb); var clientScriptRecords = await clientScriptsRepo.FindWithGuidAsync(clientKey); foreach (var item in clientScriptRecords) { Console.WriteLine(item.ToString()); } }
public async Task <IEnumerable <ClientScript> > GetClientScripts_With_ClientKey(Guid clientKey) { IAsyncRepository <ClientScript> clientScriptsRepo = new ClientScriptsAsyncRepostiory(_db); try { return(await clientScriptsRepo.FindWithGuidAsync(clientKey)); } catch (Exception) { throw; } }