internal void SaveBooksToDB(string strUserId,BookEntity Bookdata,bool IsRead) { HomePageModel hpmSaveToDB = new HomePageModel(); List<BookEntity> lstBooks = new List<BookEntity>(); lstBooks.Add(Bookdata); XmlSerializer serializer = new XmlSerializer(typeof(List<BookEntity>)); StringWriter stringWriter = new StringWriter(); XmlTextWriter xmlWriter = new XmlTextWriter(stringWriter); serializer.Serialize(xmlWriter, lstBooks); hpmSaveToDB.SaveBooksToDB(strUserId,stringWriter.ToString(),IsRead); }
internal BookNotesEntity SeekAndGetBooks(string strTxtValue, int iSrchCondn, string strUserId) { HomePageModel hpmSeekAndGet = new HomePageModel(); return hpmSeekAndGet.SeekAndGetBookDet(strTxtValue, iSrchCondn, strUserId); }
internal async Task<bool> SaveNotesToDB(string strNotes,string strUser,string strISBN) { HomePageModel hpmSaveToDB = new HomePageModel(); return await hpmSaveToDB.SaveNotesToDB(strNotes, strUser, strISBN); }
public async Task<List<BookEntity>> GetBookDetails(int iSearch, string strValue, string strUser) { HomePageModel hpmGetBookDetails = new HomePageModel(); String strVal =await hpmGetBookDetails.GetBookDetails(iSearch, strValue); return PopulateBookDetails(strVal, strUser); }