public Asset GetAsset(int id, Owner owner) { if (owner == null) return null; return RavenSession.Query<Asset>().SingleOrDefault(x => x.Id == id && x.OwnerId == owner.Id); }