public IEnumerable <UserRightViewModel> ChangeRoleRightAssignment(int roleId, string rightSymbol, bool assign) { if (assign) { m_userRoleRepository.AssignRoleRight(roleId, rightSymbol); } else { m_userRoleRepository.RemoveRoleRight(roleId, rightSymbol); } return(GetRoleRightsEditor(roleId)); }