public ActionResult DeleteGroup(int groupId) { if (Session["UserName"] == null) { return(RedirectToAction("Error")); } int userId = Int32.Parse(Session["UserId"].ToString()); KoombuBll kBll = new KoombuBll(); kBll.DeleteGroup(groupId); return(RedirectToAction("Groups")); }