public async Task <Company> CreateCompanyAsync(Company companyData) { await _dbContext.Companies.AddAsync(companyData); await _dbContext.SaveChangesAsync(); return(companyData); }
public async Task <Contact> CreateContactAsync(Contact contactData) { await _dbContext.Contacts.AddAsync(contactData); await _dbContext.SaveChangesAsync(); return(contactData); }