public async Task Update(Pilot pilot) { if (pilot is Pilot) { await service.UpdatePilotAsync(pilot); } }