public IHttpActionResult stopTopic(StopTopicReq str)
        {
            TopicRepository tr = new TopicRepository();
            topic           t  = tr.setStop(str.topicSn);

            return(Ok(t));
        }
Exemplo n.º 2
0
        public async System.Threading.Tasks.Task <aJaxDto> reopenTopic(StopTopicReq str)
        {
            aJaxDto             ajd      = new aJaxDto();
            HttpResponseMessage response = await client.PostAsJsonAsync("api/reopenTopic", str);

            if (response.IsSuccessStatusCode)
            {
                ajd.isTrue = true;
            }
            else
            {
                ajd.isTrue    = false;
                ajd.ErrorCode = 500;
                ajd.ErrorMsg  = response.ReasonPhrase;
            }
            await reflashGameListAsync();

            return(ajd);
        }