Exemple #1
0
        public async Task <Contact> CreateNewContact(Contact newContact)
        {
            _assessorDbContext.Contacts.Add(newContact);
            await _assessorDbContext.SaveChangesAsync();

            return(newContact);
        }
Exemple #2
0
        public async Task StoreSearchLog(SearchLog log)
        {
            await _context.SearchLogs.AddAsync(log);

            await _context.SaveChangesAsync();
        }