Ejemplo n.º 1
0
 public JArray GetState()
 {
     try
     {
         IList <States> objStates = new List <States>();
         objStates = _states.GetAllData();
         return(JArray.Parse(objStates.ToJson(new JsonWriterSettings {
             OutputMode = JsonOutputMode.Strict
         })));
     }
     catch (Exception)
     {
         throw;
     }
 }