I am new in ASP.Net core and migrating framework code into asp.net core but not understanding how to convert below code into asp.net core.
HttpContext.RewritePath(HttpContext.Request.RawUrl.Substring(0, HttpContext.Request.RawUrl.IndexOf("?", StringComparison.Ordinal)), string.Empty, queryString);