public static void DeleteConversion(Conversion selectedConversion) { using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server")) { IConversionContract client = myChannelFactory.CreateChannel(); client.DeleteConversion(selectedConversion); } }
public static bool UserExists(string login) { using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server")) { IConversionContract client = myChannelFactory.CreateChannel(); return(client.UserExists(login)); } }
public static List <User> GetAllUsers(Guid conversionGuid) { using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server")) { IConversionContract client = myChannelFactory.CreateChannel(); return(client.GetAllUsers(conversionGuid)); } }
public static void SaveConversion(Conversion conversion) { using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server")) { IConversionContract client = myChannelFactory.CreateChannel(); client.SaveConversion(conversion); } }
public static void AddUser(User user) { using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server")) { IConversionContract client = myChannelFactory.CreateChannel(); client.AddUser(user); } }
public static User GetUserByGuid(Guid guid) { using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server")) { IConversionContract client = myChannelFactory.CreateChannel(); return(client.GetUserByGuid(guid)); } }
public static User GetUserByLogin(string login) { using (var myChannelFactory = new ChannelFactory <IConversionContract>("Server")) { IConversionContract client = myChannelFactory.CreateChannel(); return(client.GetUserByLogin(login)); } }