public static bool AddNote(Note note) { using (var myChannelFactory = new ChannelFactory <INotesService>("BasicHttpBinding_INotesService")) { INotesService client = myChannelFactory.CreateChannel(); return(client.AddNewNote(note)); } }
public static bool AddNote(Note note) { using (var myChannelFactory = new ChannelFactory <INotesService>("BasicHttpBinding_INotesService")) { INotesService client = myChannelFactory.CreateChannel(); return(client.AddNewNote(note)); } }