Beispiel #1
0
        public CreateLineActor(LineService lineService)
        {
            _lineService = lineService;

            Receive <Line>(line =>
            {
                Line createdLine = _lineService.Create(line);
                Sender.Tell(createdLine);
            });
        }
Beispiel #2
0
        public ActionResult <Line> Create(Line row)
        {
            _service.Create(row);

            return(CreatedAtRoute("GetLine", new { id = row.Id.ToString() }, row));
        }