private async Task <bool> HandleShipDocked(string message) { //1. Deserialize ship ShipDockedMessageEvent receivedShip = JsonSerializer.Deserialize <ShipDockedMessageEvent>(message); //2. Dump ship in db Console.WriteLine("Ship docked: " + receivedShip.ShipId); Ship createdShip = await _refuelService.CreateShipAsync(new Ship() { Id = receivedShip.ShipId }); return(true); }