public async Task <CabResponseModel> UpdateCab(CabRequestModel cabRequest) { var cab = _mapper.Map <Cab>(cabRequest); var resposne = await _cabRepository.UpdateAsync(cab); return(_mapper.Map <CabResponseModel>(resposne)); }
public async Task <IActionResult> UpdatePlace(CabRequestModel cabRequest) { var cab = await _cabService.UpdateCab(cabRequest); return(Ok(cab)); }
public async Task <IActionResult> AddCab(CabRequestModel cabRequest) { var cab = await _cabService.AddCab(cabRequest); return(Ok(cab)); }