コード例 #1
0
        public ActionResult Edit(EditViewModel model)
        {
            if (!ModelState.IsValid)
            {
                model.RoleList = _roleService.Get();

                return(View(model));
            }

            _menuItemService.Edit(model.MenuItemId, model.LinkText, model.LinkURL, model.LinkIcon);

            _menuItemService.Roles(model.MenuItemId, model.SelectedRoleList);

            return(Content("Refresh"));
        }