public async Task <MessageModel <TopicDetail> > Get(int id = 0)
 {
     return(new MessageModel <TopicDetail>()
     {
         msg = "获取成功",
         success = true,
         response = await _topicDetailServices.QueryById(id)
     });
 }
        public async Task <MessageModel <TopicDetail> > Get(int id)
        {
            var data     = new MessageModel <TopicDetail>();
            var response = id > 0 ? await _topicDetailServices.QueryById(id) : new TopicDetail();

            data.response = (response?.tdIsDelete).ObjToBool() ? new TopicDetail() : response;
            if (data.response != null)
            {
                data.success = true;
                data.msg     = "";
            }

            return(data);
        }
        public async Task <MessageModel <TopicDetail> > Get(int id)
        {
            var data     = new MessageModel <TopicDetail>();
            var response = await _topicDetailServices.QueryById(id);

            data.response = response.tdIsDelete ? null : response;
            if (data.response != null)
            {
                data.success = true;
                data.msg     = "";
            }

            return(data);
        }