public ActionResult CreateScooter([FromBody] Scooter scooter) { _scooterRepository.CreateScooter(scooter); return(CreatedAtRoute("GetScooter", new { ScooterId = scooter.ScooterId }, scooter)); }
public ActionResult CreateScooter([FromBody] Scooter scooter) { _scooterRepository.CreateScooter(scooter); return(CreatedAtRoute("GetScooter", new { ScooterId = scooter.ScooterId }, scooter)); }