Example #1
0
        public IInsertCommandBeforeOrAfterTargetSyntax InsertContent(PartialViewResult partialViewResult)
        {
            if (partialViewResult == null)
            {
                throw new ArgumentNullException("partialViewResult");
            }

            var commandBuilder = new InsertCommandBuilder(this);

            commandBuilder.SetContent(partialViewResult);
            return(commandBuilder);
        }
Example #2
0
        public IInsertCommandBeforeOrAfterTargetSyntax InsertContent(string html)
        {
            if (html == null)
            {
                throw new ArgumentNullException("html");
            }

            var commandBuilder = new InsertCommandBuilder(this);

            commandBuilder.SetContent(html);
            return(commandBuilder);
        }