private void DataPortal_Fetch(Criteria criteria) { if (criteria.ResourceId == -1) { Resource = ResourceEdit.NewResourceEdit(); } else { Resource = ResourceEdit.GetResourceEdit(criteria.ResourceId); } if (criteria.GetRoles) { RoleList = RoleList.GetCachedList(); } }
private void Fetch(int resourceId, bool getRoles) { if (resourceId == -1) { Resource = ResourceEdit.NewResourceEdit(); } else { Resource = ResourceEdit.GetResourceEdit(resourceId); } if (getRoles) { RoleList = RoleList.GetCachedList(); } }