Exemplo n.º 1
0
        /// <summary>
        /// Calculates a description for the current page based upon the identity
        /// and heirachy of the current controller and action.
        /// </summary>
        /// <typeparam name="TModel"></typeparam>
        /// <param name="page"></param>
        /// <returns></returns>
        public static MvcHtmlString PageTitle <TModel>(this WebViewPage <TModel> page)
            where TModel : class, IEntityViewModel
        {
            var breadcrumbTexts = page.GetBreadcrumbsList().Select(c => c.Text);

            return(MvcHtmlString.Create(string.Join(" &rsaquo; ", breadcrumbTexts)));
        }