private static void Main(string[] args) { var client = new UserContractClient(); try { var result = client.Login("", ""); Console.WriteLine(result); } catch (Exception e) { Console.WriteLine(e); client = new UserContractClient(); } var obj = client.GetUser(999); Console.WriteLine(obj.Id + " " + obj.CtfId + " " + obj.Name); Console.ReadLine(); }
/// <summary> /// Default constructor - initializes userContractClient. /// </summary> public UserPresenter() { _ucc = new UserContractClient(); }