public JArray GetRole() { try { IList <Roles> objRoles = new List <Roles>(); objRoles = _roles.GetAllData(); return(JArray.Parse(objRoles.ToJson(new JsonWriterSettings { OutputMode = JsonOutputMode.Strict }))); } catch (Exception) { throw; } }