public RouteContext(ViewContext viewContext) { if (viewContext == null) { throw new ArgumentNullException(nameof(viewContext)); } CurrentController = viewContext.CurrentController(); CurrentAction = viewContext.CurrentAction(); }