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