public async Task <IActionResult> Update([FromBody] UpdateBicycleView bicycle) { await _bicycleService.Update(bicycle); return(Ok()); }
public async Task UpdateRentalStatus(BicycleApiModel model) { Bicycle bicycle = mapper.Map<BicycleApiModel, Bicycle>(model); await bicycleService.Update(bicycle); }