BookMgnt.Models.ChangeInfoSite.LoadBanner C# (CSharp) Метод

LoadBanner() публичный Метод

public LoadBanner ( ) : string
Результат string
        public string LoadBanner()
        {
            return Contents().SelectSingleNode("//banner").InnerText;
        }

Usage Example

Пример #1
0
 public ActionResult SiteInfo()
 {
     InfoSite info = new InfoSite();
     ChangeInfoSite ch = new ChangeInfoSite();
     info.Address = ch.LoadAddress();
     info.Email = ch.LoadEmail();
     info.Phone = ch.LoadPhone();
     info.Footer = ch.LoadFooter();
     info.imageName = ch.LoadBanner();
     return View(info);
 }