public IHttpActionResult stopTopic(StopTopicReq str) { TopicRepository tr = new TopicRepository(); topic t = tr.setStop(str.topicSn); return(Ok(t)); }
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); }