public static PageHeaderModel HeaderModel(this IHtmlHelper helper)
        {
            PageHeaderModel model = helper.GetViewData <PageHeaderModel>();

            if (model == null)
            {
                model = new PageHeaderModel
                {
                    Title     = helper.GetPageTitle(),
                    AddButton = null,
                };

                if (helper.GetViewParams().ListUrl != null)
                {
                    string id = RazorUtils.UrlToPageId(helper.GetViewParams().ListUrl);
                    model.ListBreadCrumb = new BreadCrumbModel
                    {
                        Title = helper.Page(id),
                        Link  = helper.GetViewParams().ListUrl
                    };
                }

                string addUrl = helper.GetViewParams().AddUrl;
                if (addUrl != null)
                {
                    model.AddButton         = helper.AddButton(addUrl);
                    model.EmbeddedAddButton = helper.AddButton(addUrl, "buttonGra-sm");
                    model.IsListPage        = true;
                }
                helper.SetViewData(model);
            }
            return(model);
        }
        public static void AddBreadCrumb <T>(this IHtmlHelper <T> helper, string url, IHtmlContent title = null)
        {
            var Provider = helper.GetService <IGeneralHelper>();

            var pageId = RazorUtils.UrlToPageId(url);
            var mod    = new BreadCrumbModel
            {
                Title = title ?? helper.Page(pageId),
                Link  = url
            };

            helper.HeaderModel().BreadCrums.Add(mod);
        }