public DynaDoc CreateNew(Guid docDefId) { return(new DynaDoc(_docRepo.New(docDefId), UserId, (IAppServiceProvider)(_ownProvider ? null : Provider))); }
public DynaDoc NewDynaDoc(Guid defId) { var doc = _docRepo.New(defId); return(new DynaDoc(doc, Provider)); }