Пример #1
0
 /// <summary>
 /// Gets the user.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <param name="callback">The callback.</param>
 /// <returns>MemberContract</returns>
 public static MemberContract GetUserByUserId(int userId, AsyncCallback callback)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.ExecuteAsync(proxy => proxy.GetUserByUserId(userId), callback, userId));
     }
 }
Пример #2
0
 /// <summary>
 /// Updates the user asynchronously
 /// </summary>
 /// <param name="user">The user.</param>
 /// <param name="callback">The callback.</param>
 public static void UpdateUser(MemberContract user, AsyncCallback callback)
 {
     using (var client = new SaltServiceProxy())
     {
         client.ExecuteAsync(proxy => proxy.UpdateUser(user), callback, null);
     }
 }