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

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

            return(Ok(bus));
        }