public void SaveBookInfo(BookInfo book) { // Get path to the data source string path = string.Format("{0}books.xml", HostingEnvironment.ApplicationPhysicalPath); // Save book BookInfo.SaveBook(book, path); }