if (!this._contextAccessor.HttpContext?.Request.RouteValues.TryGetValue("requiredId", out
var idRouteParam) ?? true)
return Task.CompletedTask;
var id = (int)idRouteParam;
I figured by the time it got to the cast everything would work but I keep getting this compiler error "Local variable 'idRouteParam' might not be initialized before accessing" and cant figure out why