Esempio n. 1
0
        public Guid Create(string name, string description = null)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException("Parameter should not be empty", nameof(name));
            }

            var repository = new Repository(name)
            {
                Description = description,
            };

            _repository.Upsert(repository);

            return(repository.Id);
        }