public IActionResult GetQrCode(int busId) { var busName = busService.GetBus(busId).BusName; var qrCodeContent = new QrCodeContent { BusName = busName, BusId = busId }; return(Ok(qrCodeService.GenerateQrCodeImage(qrCodeContent))); }
public Bus GetBus(int id) { return(busService.GetBus(id)); }
public IActionResult Bus(int busId) { ComplexBusViewModel bus = busService.GetBus(busId); return(Ok(bus)); }