public async Task <IEnumerable <TestData> > GetAsyncSimpleDataSync(string name)
        {
            string repoType = name;

            repo = TestRepoFactory.GetRepoFromString(repoType);
            return(await Task.Run(() => repo.All()));
        }
        public IEnumerable <TestData> GetSyncSimpleDataSync(string name)
        {
            string repoType = name;

            repo = TestRepoFactory.GetRepoFromString(repoType, Request.GetQueryNameValuePairs().Any(x => x.Key == "usestats"));
            return(repo.All());
        }
 public async Task<IEnumerable<TestData>> GetAsyncSimpleDataSync(string name)
 {
     string repoType = name;
     repo = TestRepoFactory.GetRepoFromString(repoType);
     return await Task.Run(() => repo.All());
 }
 public IEnumerable<TestData> GetSyncSimpleDataSync(string name)
 {
     string repoType = name;
     repo = TestRepoFactory.GetRepoFromString(repoType, Request.GetQueryNameValuePairs().Any(x=>x.Key=="usestats"));
     return repo.All();
 }