Esempio n. 1
0
        public static DomainResult Error(string domainDomainErrorKey)
        {
            var domainError = DomainError.Create(domainDomainErrorKey);

            return(new DomainResult(new List <DomainError> {
                domainError
            }));
        }
Esempio n. 2
0
        public static DomainResult Error(IEnumerable <string> domainDomainErrorKeys)
        {
            var enumDomainErrors = domainDomainErrorKeys.Select(e => DomainError.Create(e));

            return(new DomainResult(enumDomainErrors));
        }