Beispiel #1
0
        public ActionResult RemoveSelf(int groupId)
        {
            int       userId = Int32.Parse(Session["UserId"].ToString());
            KoombuBll kBll   = new KoombuBll();

            kBll.RemoveUserFromGroup(userId, groupId);
            return(RedirectToAction("Groups"));
        }
Beispiel #2
0
        public ActionResult DeleteUser(int groupId, int userId)
        {
            if (Session["UserName"] == null)
            {
                return(RedirectToAction("Error"));
            }

            KoombuBll kBll = new KoombuBll();

            kBll.RemoveUserFromGroup(userId, groupId);
            return(RedirectToAction("EditGroupUsers", new { groupId = groupId }));
        }