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