public override Task <ResponseResult> Plus(RequestPara request, ServerCallContext context) { int iResult = request.ILeft + request.IRight; ResponseResult responseResult = new ResponseResult() { Result = iResult, Message = "Success" }; return(Task.FromResult(responseResult)); }
public HttpResponseMessage Approval([FromBody] JObject jdata) { // RequestPara model = PM.Common.Extension.JsonEx.JsonToObj<RequestPara>(para); string modelstr = jdata["para"] == null ? "" : jdata["para"].ToString(); RequestPara model = JsonEx.JsonToObj <RequestPara>(modelstr); //string UserId= var ret = PM.DataAccess.DbContext.Db.Context.From <TbUser>() .Select(TbUser._.UserId).Where(p => p.UserCode == model.UserCode).First(); var data = _flowlogic.Approval(model.FlowCode, model.performState, model.performOpinions, model.FlowPerformID, model.flowNodeCode, ret.UserId, model.FlowTitle, model.FreeNodeUser); return(data.ToJsonApi()); }
public override Task <ResponseResult> Plus(RequestPara request, ServerCallContext context) { return(Task.FromResult(new ResponseResult { Result = request.ILeft + request.IRight, Message = "Sucess" })); }