BookManager.Entities.SiteContent.ContactPhone C# (CSharp) Method

ContactPhone() public method

public ContactPhone ( ) : string
return string
        public string ContactPhone()
        {
            return docXML.SelectSingleNode("//Phone").InnerText;
        }

Usage Example

Example #1
0
 public ActionResult SiteContact()
 {
     var config = new SiteContent(Path.Combine(Server.MapPath("~/App_Data"), "config.xml"));
     return View(new SiteConfigViewModel {
         Company = config.CompanyName(),
         Address = config.CompanyAddress(),
         Phone = config.ContactPhone(),
         Email = config.ContactEmail()
     });
 }