예제 #1
0
        public virtual async Task <IHttpActionResult> DisableById([FromUri] int id)
        {
            CancellationTokenSource token = new CancellationTokenSource();
            var register = await Service.DisableById(id, token);

            var response = Request.CreateResponse(HttpStatusCode.OK);

            response.Content = new StringContent(JsonConvert.SerializeObject(register), Encoding.UTF8, "application/json");
            return(ResponseMessage(response));
        }