public async Task <IActionResult> DeleteRefuelAsync(int id) { Refuel refuel = await _refuelService.GetByIdAsync(id); if (refuel == null) { return(NotFound(new { Message = $"Refuel with Id {id} not found" })); } await _refuelService.DeleteAsync(refuel); return(NoContent()); }