public async Task <ActionResult <ScooterDomainModel> > Post([FromBody] ScooterRequestModel requestModel) { ScooterDomainModel scooterDomainModel = new ScooterDomainModel(Guid.NewGuid(), requestModel.Latitude, requestModel.Longitude); var result = await _scooterService.Add(scooterDomainModel); if (result == null) { return(NotFound()); } return(Created(Request.Path.Value + "/" + result.Id, result)); }