Example #1
0
 public ActionResult AddComment(Comment comment, int? userId, int? channelId)
 {
     if(userId.HasValue && channelId.HasValue)
     using (RentItServiceClient proxy = new RentItServiceClient())
     {
         proxy.CreateComment(comment.Content, userId.Value, channelId.Value);
     }
     return Redirect(Request.UrlReferrer.PathAndQuery);
 }