示例#1
0
        public PartialViewResult _PersonDetailsPopup(string key)
        {
            var     fullJson   = graphQLClient.GetPerson(key);
            JObject parsedJson = JObject.Parse(fullJson);
            JObject personJson = (JObject)parsedJson["data"]["person"];
            var     employee   = JsonConvert.DeserializeObject <Employee>(personJson.ToString());

            return(PartialView("_PersonDetailsPopup", employee));
        }