public override Task <Result> EditMahasiswa(Mahasiswa request, ServerCallContext context) { string data = home.EditMahasiswa(request); Result Res = new Result(); Res.Txt = data; return(Task.FromResult(Res)); }
public string EditMahasiswa([FromBody] Mahasiswa param) { string Res = "1~Terjadi kesalahan"; HomeContext obj = new HomeContext(); Res = obj.EditMahasiswa(param); return(Res); }