Пример #1
0
        public static DomainResult Error(IEnumerable <string> domainDomainErrorKeys)
        {
            var enumDomainErrors = domainDomainErrorKeys.Select(e => DomainError.Create(e));

            return(new DomainResult(enumDomainErrors));
        }
Пример #2
0
 public static DomainResult Error(DomainError domainDomainError)
 {
     return(new DomainResult(new List <DomainError> {
         domainDomainError
     }));
 }