Exemplo n.º 1
0
        public async Task <Guid> AddOrUpdateAsync(Guid?organizationId, OrganizationDto createdOrganizationData)
        {
            Contract.Argument.IsNotNull(createdOrganizationData, nameof(createdOrganizationData));

            var employeeId = await GetEmployeeIdAsync();

            return(await _employeeWriteCommand.AddOrUpdateOrganizationAsync(employeeId, createdOrganizationData));
        }
Exemplo n.º 2
0
        public Task <Guid> UpdateAlienOrganizationAsync(Guid invitationId, OrganizationDto organizationDto)
        {
            Contract.Argument.IsNotEmptyGuid(invitationId, nameof(invitationId));

            return(_invitationWriteCommand.AddOrUpdateOrganizationAsync(invitationId, organizationDto));
        }