public UpdateLineActor(string lineId, LineService lineService) { _lineId = lineId; _lineService = lineService; Receive <Line>(line => { _lineService.Update(_lineId, line); Sender.Tell(true); }); }