Since just asking for the current time has no side effects, this It's using this RedirectToAction overload: protected internal RedirectToRouteResult RedirectToAction( string actionName, string controllerName, Object routeValues ) Related. Typically, UseStaticFiles is called before UseCors. UseCors and UseStaticFiles order. Creating Your First Application. In this post, we are going to learn how to send a file through the HTTP client in asp .net c#.The idea is that you can send a file. For ASP.NET Core You can use asp-route-* attribute: