public Response <TopicVM> Post([FromBody] TopicVM value) { var service = new Services.Content.TopicService(Context, CurrentUser); LogService.Write("Saved Topic", value.TopicId.ToString()); return(new Response <TopicVM>(service.SaveTopic(value))); }
public Response <TopicVM> GetWaitingTopics() { var service = new Services.Content.TopicService(Context, CurrentUser); return(new Response <TopicVM>(service.GetWaitingTopics())); }
public Response <TopicVM> GetTopic(Guid topicId) { var service = new Services.Content.TopicService(Context, CurrentUser); return(new Response <TopicVM>(service.GetTopicVM(topicId))); }
public Response <TopicVM> Search(string searchText) { var service = new Services.Content.TopicService(Context, CurrentUser); return(new Response <TopicVM>(service.Search(searchText))); }
public Response <TopicVM> GetKeywordTopics(string keyword) { var service = new Services.Content.TopicService(Context, CurrentUser); return(new Response <TopicVM>(service.GetKeywordTopics(keyword))); }
public Response <TopicVM> GetUserTopics(Guid userId) { var service = new Services.Content.TopicService(Context, CurrentUser); return(new Response <TopicVM>(service.GetUsersTopics(userId))); }