Example #1
0
 public ActionResult UnSubscribe(int channelId, int? userId)
 {
     if (userId.HasValue)
     {
         using (RentItServiceClient proxy = new RentItServiceClient())
         {
             proxy.Unsubscribe(userId.Value, channelId);
         }
         return Redirect(Request.UrlReferrer.PathAndQuery);
     }
     return RedirectToAction("Index", "Home");
 }