public IActionResult Delete(int id) { try { if (id != 0) { var a = cabService.DeleteCab(id); return(Ok(a)); } else { return(BadRequest()); } } catch (Exception ex) { return(BadRequest()); } }
public async Task <IActionResult> DeltePlace(int id) { await _cabService.DeleteCab(id); return(Ok()); }