Exemplo n.º 1
0
        public async Task AddAsync(string name, string slug, Guid entityId, string entityTypeId)
        {
            var urlRecord = new UrlRecord(entityId, entityTypeId, name, slug);

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

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