Beispiel #1
0
        public Task <bool> CreateAsync(ContactListEntry entry)
        {
            InMemoryDatabase.NextId();
            entry.Id = InMemoryDatabase.CurrentId;
            _database.ContactList.Add(entry);

            return(Task.FromResult(true));
        }
Beispiel #2
0
 public ContactListEntryInMemoryRepository(InMemoryDatabase database)
 {
     _database = database;
 }