private static IObservable<UserResponse> GetUser(UserQuery query) { Console.WriteLine("Got UserQuery({0}), Id = {1}", query.Name, query.Id); return _githubBrowser.GetUser("nikodemrafalski") .Select(u => new UserResponse(query.Id, new List<User> { u })); //return _userService.FindUser(query.Name) // .Select(u => new UserResponse(query.Id, u.ToList())); }
private static IObservable<UserResponse> GetUser(UserQuery query) { Console.WriteLine("Got UserQuery({0}), Id = {1}", query.Name, query.Id); return _userService.FindUser(query.Name) .Select(u => new UserResponse(query.Id, u.ToList())); }