public QRCodeGeneratorController(IQRCodeGeneratorRepository QRCodeGeneratorRepository, ILogManager logger, IHttpContextAccessor accessor) { _QRCodeGeneratorRepository = QRCodeGeneratorRepository; _logger = logger; if (accessor.HttpContext.Request.Query.ContainsKey("entityid")) { _entityId = int.Parse(accessor.HttpContext.Request.Query["entityid"]); } }
public QRCodeGeneratorManager(IQRCodeGeneratorRepository QRCodeGeneratorRepository, ISqlRepository sql) { _QRCodeGeneratorRepository = QRCodeGeneratorRepository; _sql = sql; }