public OperationResult <List <User> > FindUsers(String param) { try { return(channel.FindUsers(param)); } catch (CommunicationException ex) { ReloadChannel(); var res = FindUsers(param); if (!res.IsOk) { res = new OperationResult <List <User> >(new List <User>(), false, ex.Message); } return(res); } }
private void ExecuteFindCommand(object parametr) { var res = service.FindUsers(SearchQuery); Users = new ObservableCollection <User>(res.Response); }