/// <summary> /// Render widget /// </summary> /// <param name="parameters"></param> /// <returns></returns> public override string Render(string[] parameters) { ParseParams(parameters); var model = _pollAnswerService.GetPollResultsWidget(PollAnswerIdsString); if (model == null) { return(_localizedResourceService.T("Widget_PollResult_Message_InvalidPollAnswerIds")); } var template = _widgetTemplateService.GetTemplateByName(Template) ?? _widgetTemplateService.GetTemplateByName(GetSetup().DefaultTemplate); return(_widgetTemplateService.ParseTemplate(template, model)); }