예제 #1
0
        public async Task <IActionResult> Update([FromBody] UpdateBicycleView bicycle)
        {
            await _bicycleService.Update(bicycle);

            return(Ok());
        }
예제 #2
0
        public async Task UpdateRentalStatus(BicycleApiModel model)
        {
            Bicycle bicycle = mapper.Map<BicycleApiModel, Bicycle>(model);

            await bicycleService.Update(bicycle);
        }