예제 #1
0
        public async Task <CabResponseModel> UpdateCab(CabRequestModel cabRequest)
        {
            var cab      = _mapper.Map <Cab>(cabRequest);
            var resposne = await _cabRepository.UpdateAsync(cab);

            return(_mapper.Map <CabResponseModel>(resposne));
        }
예제 #2
0
        public async Task <IActionResult> UpdatePlace(CabRequestModel cabRequest)
        {
            var cab = await _cabService.UpdateCab(cabRequest);

            return(Ok(cab));
        }
예제 #3
0
        public async Task <IActionResult> AddCab(CabRequestModel cabRequest)
        {
            var cab = await _cabService.AddCab(cabRequest);

            return(Ok(cab));
        }