Beispiel #1
0
        public async Task <ContactSkill> CreateContactSkillAsync(ContactSkill contactSkill, CancellationToken cancellationToken)
        {
            if (contactSkill == null)
            {
                throw new ArgumentNullException(nameof(contactSkill));
            }

            ContactSkill addedContactSkill = this.dbContext.Set <ContactSkill>().Add(contactSkill);

            return(addedContactSkill);
        }
Beispiel #2
0
 public async Task UpdateContactSkillAsync(ContactSkill contactSkill, CancellationToken cancellationToken)
 {
     await this.UpdateEntityAsync(contactSkill, cancellationToken);
 }