Esempio n. 1
0
 public string Post([FromBody]string value)
 {
     try
     {
         XmlDocument doc = JsonConvert.DeserializeXmlNode(value);
         SKYAModel sm = new SKYAModel();
         return sm.PushSKYA(doc);
     }
     catch (Exception ex)
     {
         return "Fail";
     }
     return "Fail";
 }
Esempio n. 2
0
 public string Get(string value)
 {
     try
     {
         XmlDocument doc = JsonConvert.DeserializeXmlNode(value,"root");
         SKYAModel sm = new SKYAModel();
         return sm.AddSKYA(doc);
     }
     catch (Exception ex)
     {
         return "Fail";
     }
     return "Fail";
 }