private ContentForm InitContentForm() { if (IsObjectFormType) { return(PageTemplateRepository.GetContentFormByObjectId(Id) ?? new ContentForm { ObjectId = Id, ContentId = null, GenerateUpdateScript = true }); } return(new ContentForm()); }
private ContentForm InitContentForm() { if (IsObjectFormType) { return(PageTemplateRepository.GetContentFormByObjectId(Id) ?? new ContentForm { ObjectId = Id, ContentId = null, GenerateUpdateScript = true }); } return(new ContentForm()); }