示例#1
0
 public RegisteredMovement Create(CreateMovement createMovement)
 {
     return(_movementService.Create(createMovement));
 }
示例#2
0
        public ActionResult <Movement> Create([FromBody] Movement movement)
        {
            _movementService.Create(movement);

            return(CreatedAtRoute("GetMovement", new { id = movement.Id.ToString() }, movement));
        }