Last active
February 10, 2016 22:39
-
-
Save daniiiol/870eeac9715afa6e4695 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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