Skip to content

Instantly share code, notes, and snippets.

@daniiiol
Last active February 10, 2016 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniiiol/870eeac9715afa6e4695 to your computer and use it in GitHub Desktop.
Save daniiiol/870eeac9715afa6e4695 to your computer and use it in GitHub Desktop.
public interface ITitleService
{
TitleContextModel GetContextTitle(IPageTemplate contextPageTemplate);
TitleDictionaryModel GetDictionaryTitle(IDictionaryTitleTemplate dictionaryTitleTemplate);
TitleNormalModel GetNormalTitle(INormalTitleTemplate normalTitleTemplate);
}
public class TitleService : ITitleService
{
private readonly ITitleLogic _TitleLogic;
public TitleService(ITitleLogic TitleLogic)
{
_TitleLogic = TitleLogic;
}
public TitleContextModel GetContextTitle(IPageTemplate contextPageTemplate)
{
return _TitleLogic.GetContextTitle(contextPageTemplate);
}
public TitleDictionaryModel GetDictionaryTitle(IDictionaryTitleTemplate dictionaryTitleTemplate)
{
return _TitleLogic.GetDictionaryTitle(dictionaryTitleTemplate);
}
public TitleNormalModel GetNormalTitle(INormalTitleTemplate normalTitleTemplate)
{
return _TitleLogic.GetNormalTitle(normalTitleTemplate);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment