Files
OurUmbraco/uForum/Api/ForumControllerBase.cs
T

22 lines
726 B
C#

using uForum.Services;
using Umbraco.Web.WebApi;
namespace uForum.Api
{
/// <summary>
/// Base abstract controller that expose the forum services
/// </summary>
public abstract class ForumControllerBase : UmbracoApiController
{
protected ForumControllerBase()
{
TopicService = new TopicService(DatabaseContext);
CommentService = new CommentService(DatabaseContext, TopicService);
ForumService = new ForumService(DatabaseContext);
}
protected TopicService TopicService { get; private set; }
protected CommentService CommentService { get; private set; }
protected ForumService ForumService { get; private set; }
}
}