예제 #1
0
        public ActionResult _AddAccountUsingRole(int idAccount, int idRole)
        {
            var            db   = new RoleBusiness();
            MenuPermission item = new MenuPermission();

            item.RoleId = idRole;
            item.UserId = idAccount;
            var result = db.AddAccount_Menu_UsingRole(item);

            return(Json(new { result }, JsonRequestBehavior.AllowGet));
        }