Ejemplo n.º 1
0
        public CreateLineActor(LineService lineService)
        {
            _lineService = lineService;

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

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