public string StudentInfo(string Login, string Password) { ChannelFactory <IContract> factory = GetFactory(); IContract channel = factory.CreateChannel(); string Result = channel.Authorize(Login, Password); factory.Close(); return(Result); }