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; }
public void Set(UsersResult results) { SessionWrapper.SetInSession(results.Id.ToString(), results); }