Esempio n. 1
0
 public static string SimpleWrestlerToJsonRequest(SimpleWrestler wrestler)
 {
     string json = JsonConvert.SerializeObject(wrestler);
     return json;
 }
Esempio n. 2
0
 public static SimpleWrestler JsonResponseToSimpleWrestler(string responseContent)
 {
     SimpleWrestler simpleWrestler = JsonConvert.DeserializeObject<SimpleWrestler>(responseContent);
     return simpleWrestler;
 }