public async Task <ActionResult> DeleteEntity(int id) { try { //Need to check if exist for deletion await _carsService.DeleteEntity(id); return(Ok()); } catch (Exception e) { //Need to change this somehow Console.WriteLine(e); throw; } }