public async Task AddAsync(string name, string slug, Guid entityId, string entityTypeId)
        {
            var urlRecord = new UrlRecord(entityId, entityTypeId, name, slug);

            await _urlRecordRepository.InsertAsync(urlRecord);
        }
Beispiel #2
0
        public async Task InsertUrlRecordAsync(UrlRecord urlRecord, CancellationToken cancellationToken = default)
        {
            Check.NotNull(urlRecord, nameof(urlRecord));

            await _urlRecordRepository.InsertAsync(urlRecord, cancellationToken : cancellationToken);
        }