Пример #1
0
        private ContentForm InitContentForm()
        {
            if (IsObjectFormType)
            {
                return(PageTemplateRepository.GetContentFormByObjectId(Id) ?? new ContentForm {
                    ObjectId = Id, ContentId = null, GenerateUpdateScript = true
                });
            }

            return(new ContentForm());
        }