/// <summary> /// Creates a new <see cref="!:PortalSetupModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:PortalSetupModel" /> instance. /// </returns> public static Consensus.Portal.PortalSetup Create(ConsensusSite site) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); Consensus.Portal.IPortalSetupModel model = provider.Portal.PortalSetup.Create(); return(model == null ? null : new Consensus.Portal.PortalSetup(model)); }
/// <summary> /// Retrieves a specific <see cref="!:PortalSetupModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:PortalSetupModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:PortalSetupModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Portal.PortalSetup FetchById(ConsensusSite site, System.Int32 id) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); Consensus.Portal.IPortalSetupModel model = provider.Portal.PortalSetup.FetchById(id); return(model == null ? null : new Consensus.Portal.PortalSetup(model)); }