15 lines
320 B
Dart
15 lines
320 B
Dart
import 'person.dart';
|
|
import 'person_data_access_map.dart';
|
|
|
|
class Business {
|
|
final PersonDataAccessMap _backend;
|
|
|
|
Business(this._backend);
|
|
|
|
void addPerson(Person p) => _backend.store(p);
|
|
|
|
bool existsPersonId(int id) => _backend.retrieve(id) != null;
|
|
|
|
List<Person> getAllPersons() => _backend.retrieveAll();
|
|
}
|