Beispiel #1
0
        public async Task <Company> CreateCompanyAsync(Company companyData)
        {
            await _dbContext.Companies.AddAsync(companyData);

            await _dbContext.SaveChangesAsync();

            return(companyData);
        }
Beispiel #2
0
        public async Task <Contact> CreateContactAsync(Contact contactData)
        {
            await _dbContext.Contacts.AddAsync(contactData);

            await _dbContext.SaveChangesAsync();

            return(contactData);
        }