Пример #1
0
 internal FooterModel GetFooterContent(Language lang)
 {
     if (lang == Language.russian)
     {
         if (ruFooterCache == null)
         {
             ruFooterCache = GetFooterInstance(lang);
         }
         return ruFooterCache;
     }
     else
     {
         if (enFooterCache == null)
         {
             enFooterCache = GetFooterInstance(lang);
         }
         return enFooterCache;
     }
 }
Пример #2
0
 private PageActions()
 {
     connection = new ConnectToMsSql();
     ruFooterCache = null;
     enFooterCache = null;
 }
Пример #3
0
 private FooterModel GetFooterInstance(Language lang)
 {
     FooterModel fm = new FooterModel()
     {
         address = GetAddress(lang),
         contacts = GetContacts(lang),
         partners = GetIcons()
     };
     return fm;
 }