Example #1
0
 /// <summary>
 /// The list of channels assossiated with the logged in user
 /// </summary>
 /// <returns></returns>
 public ActionResult MyChannels(int? userId)
 {
     if (userId.HasValue)
     {
         Channel[] channels;
         using (RentItServiceClient proxy = new RentItServiceClient())
         {
             channels = proxy.GetCreatedChannels(userId.Value);
         }
         List<GuiChannel> guiChannelList = GuiClassConverter.ConvertChannels(channels);
         ViewBag.Title = "My channels";
         return View("ChannelList", guiChannelList);
     }
     return RedirectToAction("Index", "Home");
 }