public ActionResult PublicInfo(string widgetZone) { var model = new PublicInfoModel(); model.ButtonCode = _livePersonChatSettings.ButtonCode; model.MonitoringCode = _livePersonChatSettings.MonitoringCode; return View("Nop.Plugin.Widgets.LivePersonChat.Views.WidgetsLivePersonChat.PublicInfo", model); }
public ActionResult PublicInfo(int widgetId) { var model = new PublicInfoModel(); model.ButtonCode = _settingService.GetSettingByKey<string>(string.Format("Widgets.LivePersonChat.ButtonCode.{0}", widgetId)); model.MonitoringCode = _settingService.GetSettingByKey<string>(string.Format("Widgets.LivePersonChat.MonitoringCode.{0}", widgetId)); return View("Nop.Plugin.Widgets.LivePersonChat.Views.WidgetsLivePersonChat.PublicInfo", model); }