public bool UpdatePermission(UpdateInfo updateInfo) { var propertyList = updateInfo.GetPropertyNames(); if (propertyList == null || propertyList.Length == 0) { return(false); } _permissionRepository.UpdateEntity(updateInfo.GetData <PermissionInfo>(), propertyList); return(_unitOfWork.Commit() > 0); }