public bool FindUser(string userName, string password, out UserIdentity userIdentity) { userIdentity = DataConnection.Ask(dc => dc.GetUserIdentityAsync(userName, password)).Result; return userIdentity != null; }