public async Task <JsonResult> GetUserData() { var identity = GetIdentity(); var model = await UserCore.GetUserData(identity.AspNetUserId).ConfigureAwait(false); if (model == null) { return(Json(ResponseFactory.ErrorReponse)); } return(Json(ResponseFactory.CreateResponse(true, (int)ResponseCode.Success, model))); }