Beispiel #1
0
 public DataXML DataToDataJsonForRequest(Data userData)
 {
     DataXML d = new DataXML();
     d.Documents = CreateDocumentSerializable(userData.Documents); ;
     d.Patients = CreatePatientList(userData.Follow.Keys.ToList());
     d.Professionals = CreateArrayProList(userData.Follow.Values.ToList());
     d.User = CreateUser(userData.User);
     d.DocumentAdded = CreateDocumentSerializable(userData.DocumentsAdded);
     return d;
 }
Beispiel #2
0
 private Data XmlDeseriliaze(string s)
 {
     DataXML data = new DataXML();
     data = JsonConvert.DeserializeObject<DataXML>(s);
     return _jsonCovertor.DataJsonToDataFromRequest(data);
 }