Exemplo n.º 1
0
        /// <summary>
        /// Gets the bundle path for the specific view. Is used for rendering view specific resources like js or css.
        /// </summary>
        /// <param name="view">The view for which the bundle path is requested</param>
        /// <returns>The bundle path identifier</returns>
        public static string GetViewBundlePath(this WebViewPage view)
        {
            var areaName = view.ViewContext.RouteData.DataTokens["area"] as string;

            return(string.IsNullOrEmpty(areaName) ? view.GetBundlePathForNormalView() : view.GetBundlePathForAreaView(areaName));
        }