/// <summary>
        /// Toggles the endorsement for the given mod.
        /// </summary>
        /// <param name="p_modMod">The mod to endorse/unendorse.</param>
        public void ToggleModEndorsement(IMod p_modMod, HashSet <IMod> p_hashMods, bool?p_booEnable)
        {
            string strResult = string.Empty;

            if (String.IsNullOrEmpty(p_modMod.Id))
            {
                throw new Exception("we couldn't find a proper Nexus ID or the file no longer exists on the Nexus sites.");
            }

            if (!ModManager.ModRepository.IsOffline)
            {
                ModManager.ToggleModEndorsement(p_modMod);
            }
            else
            {
                ModManager.Login();
                ModManager.AsyncEndorseMod(p_modMod);
            }
        }