Esempio n. 1
0
        public Guid Search(string queryString)
        {
            var userResult = new UsersResult();

            Task.Factory.StartNew(() => userResult.SetResult(repository.Find(x => x.Name.Contains(queryString))));

            storage.Set(userResult);
            return userResult.Id;
        }
Esempio n. 2
0
 public void Set(UsersResult results)
 {
     SessionWrapper.SetInSession(results.Id.ToString(), results);
 }