private void BuildRoute() { var attributes = modelType.GetTypeInfo().CustomAttributes; Route = GetRawRoute(attributes) ?? model.GetType().Name; ReplaceRouteTokens(); }