public async Task <IActionResult> DeleteLine(int id) { ServiceResponse <int> response = await _routeService.DeleteLine(id); if (!response.Success) { return(BadRequest(response)); } return(Ok(response)); }