Example #1
0
        public async Task <Contact> InsertAsync(Contact contact)
        {
            await context.AddAsync(contact);

            await context.SaveChangesAsync();

            return(await GetByIdAsync(contact.Id));
        }