public IActionResult Edit(int id, [FromBody] cabdto cabdetails) { try { return(Ok(cabService.UpdateCab(id, cabdetails))); } catch (Exception e) { return(Ok(e)); } }
public async Task <IActionResult> UpdatePlace(CabRequestModel cabRequest) { var cab = await _cabService.UpdateCab(cabRequest); return(Ok(cab)); }