Esempio n. 1
0
        public string EditMahasiswa(Mahasiswa mahasiswa)
        {
            string Res = "1~General Error";

            using var channel = GrpcChannel.ForAddress("http://localhost:5001");
            var       client = new Greeter.GreeterClient(channel);
            Mahasiswa mhs    = mahasiswa;
            var       reply  = client.EditMahasiswa(mhs);

            Res = reply.Txt;

            return(Res);
        }