public CreateLineActor(LineService lineService) { _lineService = lineService; Receive <Line>(line => { Line createdLine = _lineService.Create(line); Sender.Tell(createdLine); }); }
public ActionResult <Line> Create(Line row) { _service.Create(row); return(CreatedAtRoute("GetLine", new { id = row.Id.ToString() }, row)); }