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; } }