public ActionResult UnLike(int id, int groupId) { if (Session["UserName"] == null) { return(RedirectToAction("Error")); } int userId = Int32.Parse(Session["UserId"].ToString()); KoombuBll kBll = new KoombuBll(); kBll.UnlikePost(id, userId); if (groupId != 0) { return(RedirectToAction("GroupWall", "Group", new { groupId = groupId })); } return(RedirectToAction("Home", "Home")); }