// Create a weapon for the player private async Task CreateWeapon(Player player) { WeaponsType simpleWeapon = new WeaponsType(); simpleWeapon.Name = "Punch"; simpleWeapon.Damage = 30; simpleWeapon.MissRate = 10; var insertedWeaponTypeId = await weaponsTypeAccessLayer.AddAsync(simpleWeapon); Weapon weapon = new Weapon(); weapon.WeaponTypeId = insertedWeaponTypeId; weapon.PlayerId = player.Id; await weaponsAccessLayer.AddAsync(weapon); }