예제 #1
0
 public static void DeleteConversion(Conversion selectedConversion)
 {
     using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server"))
     {
         IConversionContract client = myChannelFactory.CreateChannel();
         client.DeleteConversion(selectedConversion);
     }
 }
예제 #2
0
 public static bool UserExists(string login)
 {
     using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server"))
     {
         IConversionContract client = myChannelFactory.CreateChannel();
         return(client.UserExists(login));
     }
 }
예제 #3
0
 public static List <User> GetAllUsers(Guid conversionGuid)
 {
     using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server"))
     {
         IConversionContract client = myChannelFactory.CreateChannel();
         return(client.GetAllUsers(conversionGuid));
     }
 }
예제 #4
0
 public static void SaveConversion(Conversion conversion)
 {
     using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server"))
     {
         IConversionContract client = myChannelFactory.CreateChannel();
         client.SaveConversion(conversion);
     }
 }
예제 #5
0
 public static void AddUser(User user)
 {
     using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server"))
     {
         IConversionContract client = myChannelFactory.CreateChannel();
         client.AddUser(user);
     }
 }
예제 #6
0
 public static User GetUserByGuid(Guid guid)
 {
     using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server"))
     {
         IConversionContract client = myChannelFactory.CreateChannel();
         return(client.GetUserByGuid(guid));
     }
 }
예제 #7
0
 public static User GetUserByLogin(string login)
 {
     using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server"))
     {
         IConversionContract client = myChannelFactory.CreateChannel();
         return(client.GetUserByLogin(login));
     }
 }