public RedirectToRouteResult LikeAPost(int postId) { var user = Session["User"] as User; if (!likeManager.ChekckThatLikeStatus(user.Id, postId)) { likeManager.LikeAPost(user.Id, postId); } else { likeManager.RemoveMyLike(user.Id, postId); } var numberOfLike = likeManager.GetNumberOfLikes(postId); @ViewBag.LikeCounter = numberOfLike; return(RedirectToAction("Index", "NewsFeed")); }