public IActionResult Create([FromBody] cabdto cabdetails) { try { return(Ok(cabService.AddCab(cabdetails))); } catch (Exception e) { return(Ok(e)); } }
public async Task <IActionResult> AddCab(CabRequestModel cabRequest) { var cab = await _cabService.AddCab(cabRequest); return(Ok(cab)); }