public static bool CanStartStopChannels() { using (RentItServiceClient proxy = new RentItServiceClient()) { return proxy.CanStartStopChannels(); } }
public ActionResult StopChannel(int channelId) { using (RentItServiceClient proxy = new RentItServiceClient()) { if (proxy.CanStartStopChannels()) { proxy.StopChannelStream(channelId); } } return Redirect(Request.UrlReferrer.PathAndQuery); }