Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. public interface ITitleService
  2. {
  3. TitleContextModel GetContextTitle(IPageTemplate contextPageTemplate);
  4.  
  5. TitleDictionaryModel GetDictionaryTitle(IDictionaryTitleTemplate dictionaryTitleTemplate);
  6.  
  7. TitleNormalModel GetNormalTitle(INormalTitleTemplate normalTitleTemplate);
  8. }
  9.  
  10.  
  11. public class TitleService : ITitleService
  12. {
  13. private readonly ITitleLogic _TitleLogic;
  14.  
  15. public TitleService(ITitleLogic TitleLogic)
  16. {
  17. _TitleLogic = TitleLogic;
  18. }
  19.  
  20. public TitleContextModel GetContextTitle(IPageTemplate contextPageTemplate)
  21. {
  22. return _TitleLogic.GetContextTitle(contextPageTemplate);
  23. }
  24.  
  25. public TitleDictionaryModel GetDictionaryTitle(IDictionaryTitleTemplate dictionaryTitleTemplate)
  26. {
  27. return _TitleLogic.GetDictionaryTitle(dictionaryTitleTemplate);
  28. }
  29.  
  30. public TitleNormalModel GetNormalTitle(INormalTitleTemplate normalTitleTemplate)
  31. {
  32. return _TitleLogic.GetNormalTitle(normalTitleTemplate);
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement