public IActionResult GetQrCode(int busId)
        {
            var busName       = busService.GetBus(busId).BusName;
            var qrCodeContent = new QrCodeContent
            {
                BusName = busName,
                BusId   = busId
            };

            return(Ok(qrCodeService.GenerateQrCodeImage(qrCodeContent)));
        }
Beispiel #2
0
 public Bus GetBus(int id)
 {
     return(busService.GetBus(id));
 }
Beispiel #3
0
        public IActionResult Bus(int busId)
        {
            ComplexBusViewModel bus = busService.GetBus(busId);

            return(Ok(bus));
        }