public ResultMonad.Result <SourceItem, SourceErrs> CloneInstanceForCode(ConfigCode configCode, SourceVals sourceVals) { return(detailBundle.CloneInstanceForCode(configCode, sourceVals)); }
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)); }