public PageWeb GetPage(int SiteID, string Url, string FriendlyUrl) { var _Page = new PageWeb(); _Page.Page = GetPageCultureBinding(SiteID, Url, FriendlyUrl); _Page.Content = new ContentBLL().GetByRoot(SiteID, Url, _Page.Page.PageAlias, _Page.Page.CultureName); return _Page; }
public PageWeb GetPageByAlias(int SiteID, string Url, string Alias, string Lang) { var _Page = new PageWeb(); _Page.Page = GetPageCultureBindingByAlias(SiteID, Url, Alias, Lang); _Page.Content = new ContentBLL().GetByRoot(SiteID, Url, Alias, Lang); return _Page; }
public static ICollection<ContentBindingList> FindItems(this HtmlHelper helper, PageWeb Model, string Value) { return FindItems(helper, Model.Content, Value); }
public static ContentBindingList Find(this HtmlHelper helper, PageWeb Model, string Value) { return Model.Content.Items.Where(m => m.ContentPropertyAlias.Equals(Value)).SingleOrDefault(); }
public static MvcHtmlString FindValue(this HtmlHelper helper, PageWeb Model, string Value) { return FindValue(helper, Model.Content, Value); }