public void btnSaveRole(int app_id, string menu_ids) { try { int role_id = RoleID; SystemRoleWrapper obj = SystemRoleWrapper.FindById(role_id); SystemRoleWrapper.PatchAssignRoleMenusInApplication(obj, app_id, menu_ids.Split(',')); } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; } }
public void SaveApplicationAssignedMenus(int app_id, string menu_ids) { try { int role_id = RoleID; SystemRoleWrapper obj = SystemRoleWrapper.FindById(role_id); SystemRoleWrapper.PatchAssignRoleMenusInApplication(obj, app_id, menu_ids.Split(',')); } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = string.Format(this.GetGlobalResourceObject("GlobalResource", "msgServerErrorMsg").ToString(), ex.Message); } }