BookMgnt.Models.ChangeInfoSite.LoadBanner C# (CSharp) Méthode

LoadBanner() public méthode

public LoadBanner ( ) : string
Résultat string
        public string LoadBanner()
        {
            return Contents().SelectSingleNode("//banner").InnerText;
        }

Usage Example

Exemple #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);
 }