Ejemplo n.º 1
0
        public async Task <string> AddAsync(Collection collection)
        {
            var userId = _resolver.GetUserId();

            if (userId == null)
            {
                throw new UnauthorizedAccessException();
            }

            return(await _repository.AddAsync(collection, userId, DateTimeOffset.UtcNow));
        }