public async Task ShipUpdate(long shipId) { var ship = kingdom.Ships.FirstOrDefault(s => s.Id == shipId); if (ship != null) { if (await restrictionsService.GoldAvailableForShips(kingdom.Id, ship.Type.ToString())) { await shipService.UpdateShipLevel(shipId); } } }