public string GetFrontOfficeOption(string ctrl) { string crlHash = Generic.GetHash(Generic.GetWebConfigValue("WebServiceKey")); if (ctrl != crlHash) return string.Empty; try { db_config_frontoffice dcf = new db_config_frontoffice(); dcf.Open(); string options = dcf.Get.Options; dcf.Close(); return options; } catch (Exception ex) { return ex.Message; } }
/// <summary> /// Save information of options textarea /// </summary> private static void SaveOptions(string optionsData) { try { db_config_frontoffice dcf = new db_config_frontoffice(); dcf.Open(); dcf.Get.Options = optionsData; dcf.Commit(); dcf.Close(); } catch (Exception ex) { throw new Exception("error: Save Options: " + ex.Message); } }