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")); }