public virtual IActionResult Help([FromQuery] string id) { var HelpTopicsModel = new HelpTopicModel(_helpResourceProvider); HelpTopicsModel.Topics = _helpTopicsProvider.GetHelpTopics(this); HelpTopicsModel.HelpURL = GetHelpURL(); HelpTopicsModel.ControllerURL = GetControllerUrl(); var topic = HelpTopicsModel.Topics.FirstOrDefault(x => x.ID == id); if (topic == null) { HelpTopicsModel.DisplayID = HelpTopicsModel.Topics.FirstOrDefault(x => x.TopicType == HelpTopicType.Controller).ID; } else { HelpTopicsModel.DisplayID = topic.ID; } return(GetView(HelpTopicsModel)); }
protected override IActionResult GetView(HelpTopicModel helpTopicsModel) { return(View(helpTopicsModel)); }
protected virtual IActionResult GetView(HelpTopicModel helpTopicsModel) { return(View("HelpTopic", helpTopicsModel)); }