예제 #1
0
        public IActionResult OnPost()
        {
            var res = _grpcSrv.MethodInvoke(Endpoint, MethodName, RequestJson);

            return(new JsonResult(new { respJson = res }));
        }
예제 #2
0
        public async Task <IActionResult> OnPost()
        {
            var res = await _grpcSrv.MethodInvoke(Endpoint, MethodName, RequestJson);

            return(new JsonResult(new { respJson = res }));
        }