public void AddScooter(RequestAddScooterModel scooterModel)
        {
            _context.Scooters.Add(new Scooter()
            {
                SerialNumber = scooterModel.SerialNumber
            });

            _context.SaveChanges();
        }
Ejemplo n.º 2
0
 public ActionResult AddScooter([FromBody] RequestAddScooterModel model)
 {
     _scooterService.AddScooter(model);
     return(Ok());
 }