public int InsertBook(Book B) { int res = 0; if (BookIsValid(B)) { res = Context.InsertBook(B); return(res); } return(res); }