Example #1
0
 public UserServiceReference.UserRequest GetUser(int id)
 {
     using (UserServiceReference.ServiceClient client = new UserServiceReference.ServiceClient())
     {
         return client.GetUserById(new UserServiceReference.GetUserById() { inputUserId = id});
     }
 }
Example #2
0
 public UserServiceReference.UserRequest GetUser(int id)
 {
     using (UserServiceReference.ServiceClient client = new UserServiceReference.ServiceClient())
     {
         return(client.GetUserById(new UserServiceReference.GetUserById()
         {
             inputUserId = id
         }));
     }
 }