public async Task <ActionResult> DeleteBusAsync(int id) { var busSelected = await _busService.GetBusByIdAsync(id); if (busSelected == null) { return(NotFound()); } await _busService.DeleteBusAsync(busSelected); return(NoContent()); }
public async Task <ActionResult> DeleteBusAsync(int id) { var busSelected = await _busService.GetBusByIdAsync(id); if (busSelected == null) { return(NotFound()); } await _busService.DeleteBusAsync(busSelected); return(NoContent()); }