/// <summary> /// 获取当前用户信息 /// </summary> /// <returns></returns> public ActionResult GetCurrentUserFormJson() { string userId = OperatorProvider.Provider.Current().UserId; UserEntity userEntity = _app.GetEntityById(userId); return(Content(userEntity.ToJson())); }
public async Task <IActionResult> GetFormJson(string keyValue) { var data = await userApp.GetEntityById(keyValue); return(Content(data.ToJson())); }