Exemplo n.º 1
0
        public IActionResult GetWithSubTopics(int id)
        {
            var topic = _topicService.FindWithSubTopics(id);

            topic.SubTopics = topic.SubTopics.Where(x => x.DateDeleted == null).ToList();
            var dto = _mapper.Map <TopicDto>(topic);

            return(Ok(dto));
        }