Exemple #1
0
        public static Out AddressTemplateStoredCheckRenderAddress(TemplateStored ts, IState state)
        {
            var ws = state.AddOrUpdate(new WorkflowState {
                AddressTemplateId = ts.TemplateId
            }, existing =>
            {
                existing.AddressTemplateId = ts.TemplateId;
                return(existing);
            });

            return(RenderAddressIfReady(ws));
        }
Exemple #2
0
        public static Out ContentTemplateStoredCheckRenderContent(TemplateStored ts, IState state)
        {
            var ws = state.AddOrUpdate(new WorkflowState {
                ContentTemplateId = ts.TemplateId
            }, existing =>
            {
                existing.ContentTemplateId = ts.TemplateId;
                return(existing);
            });

            return(RenderContentIfReady(ws));
        }