/// <summary> /// Creates a new <see cref="!:OrganisationDepartmentModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:OrganisationDepartmentModel" /> instance. /// </returns> public static Consensus.Contact.OrganisationDepartment Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationDepartment.Create(site)); }
/// <summary> /// Retrieves a collection of <see cref="!:OrganisationDepartmentModel" /> instances. /// </summary> /// <param name="organisationId"> /// The value which identifies the <see cref="!:OrganisationDepartmentModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:OrganisationDepartmentModel" /> instances that match the specified <paramref name="organisationId" />. /// </returns> public static IEnumerable <Consensus.Contact.OrganisationDepartment> FetchAllByOrganisationId(System.String organisationId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationDepartment.FetchAllByOrganisationId(site, organisationId)); }
/// <summary> /// Retrieves a specific <see cref="!:OrganisationDepartmentModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:OrganisationDepartmentModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:OrganisationDepartmentModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Contact.OrganisationDepartment FetchById(System.String id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationDepartment.FetchById(site, id)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationDepartment.GetTableName(site)); }
/// <summary> /// Retrieves all instances of the <see cref="!:OrganisationDepartmentModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:OrganisationDepartmentModel" /> instances. /// </returns> public static IEnumerable <Consensus.Contact.OrganisationDepartment> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationDepartment.FetchAll(site)); }