Exemple #1
0
        public async Task <ViewResult> TopicModerationLog(int id)
        {
            var topic = await _topicService.Get(id);

            if (topic == null)
            {
                throw new Exception($"There is no topic with ID {id} to obtain a moderation log for.");
            }
            var log = await _moderationLogService.GetLog(topic, true);

            return(View(log));
        }
        public ViewResult TopicModerationLog(int id)
        {
            var topic = _topicService.Get(id);

            if (topic == null)
            {
                throw new Exception(String.Format("There is no topic with ID {0} to obtain a moderation log for.", id));
            }
            var log = _moderationLogService.GetLog(topic, true);

            return(View(log));
        }
        public ViewResult ModerationLog(DateTime start, DateTime end)
        {
            var list = _moderationLogService.GetLog(start, end);

            return(View(list));
        }
        public async Task <ActionResult <List <ModerationLogEntry> > > QueryModerationLog([FromBody] IPHistoryQuery query)
        {
            var history = await _moderationLogService.GetLog(query.Start, query.End);

            return(history);
        }