Esempio n. 1
0
        public async Task <ActionResult> DeleteTopicByIdAsync(int topicId)
        {
            try
            {
                await _topicService.DeleteByIdAsync(topicId, this.User);

                return(Ok($"Topic with Id={topicId} is deleted"));
            }
            catch (ForumException ex)
            {
                return(BadRequest(ex.Message));
            }
        }