Exemplo n.º 1
0
        public ActionResult CreateScooter([FromBody] Scooter scooter)
        {
            _scooterRepository.CreateScooter(scooter);

            return(CreatedAtRoute("GetScooter", new
            {
                ScooterId = scooter.ScooterId
            }, scooter));
        }