-
Notifications
You must be signed in to change notification settings - Fork 5.2k
/
ITopicModelFactory.cs
32 lines (29 loc) · 1.11 KB
/
ITopicModelFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Nop.Web.Models.Topics;
namespace Nop.Web.Factories
{
/// <summary>
/// Represents the interface of the topic model factory
/// </summary>
public partial interface ITopicModelFactory
{
/// <summary>
/// Get the topic model by topic identifier
/// </summary>
/// <param name="topicId">Topic identifier</param>
/// <param name="showHidden">A value indicating whether to show hidden records</param>
/// <returns>Topic model</returns>
TopicModel PrepareTopicModelById(int topicId, bool showHidden = false);
/// <summary>
/// Get the topic model by topic system name
/// </summary>
/// <param name="systemName">Topic system name</param>
/// <returns>Topic model</returns>
TopicModel PrepareTopicModelBySystemName(string systemName);
/// <summary>
/// Get the topic template view path
/// </summary>
/// <param name="topicTemplateId">Topic template identifier</param>
/// <returns>View path</returns>
string PrepareTemplateViewPath(int topicTemplateId);
}
}