コード例 #1
0
        public async Task <ActionResult <ScooterDomainModel> > Put(Guid id, [FromBody] ScooterRequestModel requestModel)
        {
            var result = await _scooterService.Update(id, requestModel.Latitude, requestModel.Longitude);

            if (result == null)
            {
                return(NotFound());
            }

            return(Ok(ToScooterResponse(result)));
        }