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