public override string GetItemUrl(Item item, UrlOptions options) { var datedLinkProvider = new DatedLinkProvider(new TagRepository(new DataContext())); Func <Item, UrlOptions, string> defaultUrlGenerator = base.GetItemUrl; return(datedLinkProvider.GetItemUrl(item, options, defaultUrlGenerator).FirstOrLazy(() => defaultUrlGenerator(item, options))); }
public override string GetItemUrl(Item item, UrlOptions options) { var datedLinkProvider = new DatedLinkProvider(new TagRepository(new DataContext())); Func<Item, UrlOptions, string> defaultUrlGenerator = base.GetItemUrl; return datedLinkProvider.GetItemUrl(item, options, defaultUrlGenerator).FirstOrLazy(() => defaultUrlGenerator(item, options)); }