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

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