public HttpResponseMessage PostShutDownPublishingPoint(string aPublishingPointName) { var result = BLLPublishingPoint._ShutdownPublishingPoint(aPublishingPointName); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, result); return(response); }
public HttpResponseMessage PostStopLiveSource(string aPublishingPointName) { var result = BLLPublishingPoint._StopLiveSource_PublishingPoint(aPublishingPointName); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, result); return(response); }
// GET: api/ppointstop/5 public HttpResponseMessage Get(int id) { var pp = BLLPpoint.GetPPoint(id.ToString()); var result = BLLPublishingPoint._StopLiveSource_PublishingPoint(pp.IIS_NAME); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, result); return(response); }
// POST: api/ppointrestart public void Post(string value) { var result = BLLPublishingPoint._ShutdownPublishingPoint(value); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, result); }