public bool IsBountyOwner(Guid userId, Guid bountyId) { Character character = new Character(); bool isBountyOwner = false; var bounty = this.db.Bounties.Find(bountyId); Guid characterUserId = character.GetCharacterById(bounty.PlacedById).Single().UserId; if(userId == characterUserId) { isBountyOwner = true; } return isBountyOwner; }