I am learing programming for a bit more then 6 months, and recently someone told me my concept is not the best one, he proposed me that I rather split my code into business logic layer and data access layer.
And now I would like to ask someone if he can help me out on a simple example of how to do business logic for this example (it`s about library):
Database tables(Parameters):
1. Author (IDAuthor, Name, SureName)
2. Book (IDBook, IDAuthorFK, Title)
I would like to have methods:
1.1. Get author name and surename
1.2. Add new author (insert)
1.3. Update author
1.4. Delete author
2.1 Get books (returns all books)
2.2. Get book by author`s ID (returns a value by author`s ID)
2.3. Add new book
2.4. Update book
2.5. Delete book