Example #1
0
        public async Task <Guid> AddOrUpdateAsync(Guid contactId, ContactDto createdContactData)
        {
            Contract.Argument.IsNotNull(createdContactData, nameof(createdContactData));

            var employeeId = await GetEmployeeIdAsync().ConfigureAwait(false);

            return(await _employeeWriteCommand.AddOrUpdateContactAsync(employeeId, createdContactData).ConfigureAwait(false));
        }
        public Task <Guid> UpdateContactAsync(Guid employeeId, ContactDto contactDto)
        {
            Contract.Argument.IsNotEmptyGuid(employeeId, nameof(employeeId));

            return(_employeeWriteCommand.AddOrUpdateContactAsync(employeeId, contactDto));
        }