Esempio n. 1
0
        async Task IBikePort.UpdateBikePosition(Guid id, BikePositionModel bikePositionModel)
        {
            var bikePositionDto = _mapper.Map <BikePositionDto>(bikePositionModel);

            await _bikeApplicationService.UpdateBikePosition(id, bikePositionDto);
        }
Esempio n. 2
0
        public async Task <IActionResult> UpdateBikePosition([FromRoute] Guid id, [FromBody] BikePositionModel bikePositionModel)
        {
            await _bikePort.UpdateBikePosition(id, bikePositionModel);

            return(Ok());
        }