/// <summary> /// Retrieves the current system settings, which is 1 row. /// </summary> /// <returns>DataTable with 1 row with the system settings. See TF_SystemData.</returns> public static SystemDataEntity GetSystemSettings() { SystemDataCollection systemData = new SystemDataCollection(); // get all entities, there's just 1 systemData.GetMulti(null); // if the system is setup correctly, there's one entity return systemData[0]; }
/// <summary> /// Retrieves the current system settings, which is 1 row. /// </summary> /// <returns>DataTable with 1 row with the system settings. See TF_SystemData.</returns> public static SystemDataEntity GetSystemSettings() { SystemDataCollection systemData = new SystemDataCollection(); // get all entities, there's just 1 systemData.GetMulti(null); // if the system is setup correctly, there's one entity return(systemData[0]); }