public ActionResult SubscribeUnsubscribe(string userId) { string returnUrl = Request.UrlReferrer.AbsolutePath + Request.UrlReferrer.Query; if (!IsFriend(userId)) { helper.AddFriend(userId, User.Identity.GetUserId()); } else { helper.DeleteFriend(userId, User.Identity.GetUserId()); } return(Redirect(returnUrl)); }