public ActionResult AddRoleForGroup(string RoleId, string GroupId) { data.DeleteAllRole(GroupId); var dao = new UserDao(); bool result = dao.AddRoleForGroup(RoleId, GroupId.Trim()); return(Json(result, JsonRequestBehavior.AllowGet)); }