public async Task <ActionResult <BusReadDto> > GetBusByIdAsync(int id) { var bus = await _busService.GetBusByIdAsync(id); if (bus != null) { return(Ok(_mapper.Map <BusReadDto>(bus))); } return(NotFound()); }
public async Task <ActionResult <BusReadDto> > GetBusByIdAsync(int id) { var bus = await _busService.GetBusByIdAsync(id); if (bus != null) { return(Ok(_mapper.Map <BusReadDto>(bus))); } return(NotFound()); }