public static JArray ObtenerJsonDivisionesActivas(CConexion pConexion) { JArray JADivisiones = new JArray(); CDivision Division = new CDivision(); foreach (CDivision oDivision in Division.LlenaObjetos(pConexion)) { JObject JDivision = new JObject(); JDivision.Add("Valor", oDivision.IdDivision); JDivision.Add("Descripcion", oDivision.Division); JADivisiones.Add(JDivision); } return(JADivisiones); }