public ResultMonad.Result <SourceItem, SourceErrs> CloneInstanceForCode(ConfigCode configCode, SourceVals sourceVals)
 {
     return(detailBundle.CloneInstanceForCode(configCode, sourceVals));
 }
Example #2
0
        public ResultMonad.Result <SourceItem, SourceErrs> CloneInstanceForCode(ConfigCode configCode, SourceVals sourceVals)
        {
            ResultMonad.Result <SourceItem, SourceErrs> emptyInstance = FindArticleSource(configCode);

            if (emptyInstance.IsFailure)
            {
                return(emptyInstance);
            }
            return(emptyInstance.Value.CloneSourceAndSetValues <SourceItem>(configCode, sourceVals));
        }