예제 #1
0
        //gives a user a warning and flaggs the thread/post
        public async Task <IActionResult> FlagPost(int?threadsId)
        {
            //flags a thread
            await _service.FlagThread(threadsId);

            return(RedirectToAction("Reported", "Thread"));
        }