@using QRRapidoApp.Services @model dynamic @inject AdDisplayService AdService @{ var userId = User?.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier)?.Value; var showAds = await AdService.ShouldShowAds(userId); var position = ViewBag.position ?? Model?.position ?? "header"; } @if (showAds) { @switch (position) { case "header":