Пересматриваем решение на счёт SQL
This commit was merged in pull request #4.
This commit is contained in:
12
src/services/AuthorService.cpp
Normal file
12
src/services/AuthorService.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
// #define BUILD_SERVICES
|
||||
#include "AuthorService.h"
|
||||
|
||||
QVector<model::Author> AuthorService::fetchAll()
|
||||
{
|
||||
return AuthorRepository::getAll();
|
||||
}
|
||||
|
||||
bool AuthorService::add(const model::Author& author)
|
||||
{
|
||||
return AuthorRepository::insert(author);
|
||||
}
|
||||
Reference in New Issue
Block a user