public void AddScooter(RequestAddScooterModel scooterModel) { _context.Scooters.Add(new Scooter() { SerialNumber = scooterModel.SerialNumber }); _context.SaveChanges(); }
public ActionResult AddScooter([FromBody] RequestAddScooterModel model) { _scooterService.AddScooter(model); return(Ok()); }