/// <summary> /// Retrieves all instances of the <see cref="!:SysConfigModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:SysConfigModel" /> instances. /// </returns> public static IEnumerable <Consensus.Common.SysConfig> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(SysConfig.FetchAll(site)); }
/// <summary> /// Retrieves a specific <see cref="!:PaymentChequeModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:PaymentChequeModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:PaymentChequeModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Finance.PaymentCheque FetchById(System.String id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCheque.FetchById(site, id)); }
public static System.String GetTableName(ConsensusSite site) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); return(provider.Finance.PaymentCheque.GetTableName()); }
/// <summary> /// Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances. /// </summary> /// <param name="cardholderRoleId"> /// The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="cardholderRoleId" />. /// </returns> public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllByCardholderRoleId(System.String cardholderRoleId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCheque.FetchAllByCardholderRoleId(site, cardholderRoleId)); }
/// <summary> /// Creates a new <see cref="!:PaymentChequeModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:PaymentChequeModel" /> instance. /// </returns> public static Consensus.Finance.PaymentCheque Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCheque.Create(site)); }
/// <summary> /// Retrieves a collection of <see cref="!:LocationModel" /> instances. /// </summary> /// <param name="linkedLocationId"> /// The value which identifies the <see cref="!:LocationModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:LocationModel" /> instances that match the specified <paramref name="linkedLocationId" />. /// </returns> public static IEnumerable <Consensus.Contact.Location> FetchAllByLinkedLocationId(ConsensusSite site, System.String linkedLocationId) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); IEnumerable <Consensus.Contact.ILocationModel> collection = provider.Contact.Location.FetchAllByLinkedLocationId(linkedLocationId); return(collection.Select(model => new Consensus.Contact.Location(model))); }
/// <summary> /// Retrieves a collection of <see cref="!:PaymentCardModel" /> instances. /// </summary> /// <param name="bookingId"> /// The value which identifies the <see cref="!:PaymentCardModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PaymentCardModel" /> instances that match the specified <paramref name="bookingId" />. /// </returns> public static IEnumerable <Consensus.Finance.PaymentCard> FetchAllByBookingId(System.String bookingId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCard.FetchAllByBookingId(site, bookingId)); }
/// <summary> /// Retrieves a specific <see cref="!:OrganisationAddressModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:OrganisationAddressModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:OrganisationAddressModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Contact.OrganisationAddress FetchById(System.String id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationAddress.FetchById(site, id)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationAddress.GetTableName(site)); }
/// <summary> /// Creates a new <see cref="!:OrganisationAddressModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:OrganisationAddressModel" /> instance. /// </returns> public static Consensus.Contact.OrganisationAddress Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationAddress.Create(site)); }
/// <summary> /// Retrieves all instances of the <see cref="!:OrganisationAddressModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:OrganisationAddressModel" /> instances. /// </returns> public static IEnumerable <Consensus.Contact.OrganisationAddress> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationAddress.FetchAll(site)); }
/// <summary> /// Retrieves a collection of <see cref="!:SysConfigModel" /> instances. /// </summary> /// <param name="sellingCompanyId"> /// The value which identifies the <see cref="!:SysConfigModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:SysConfigModel" /> instances that match the specified <paramref name="sellingCompanyId" />. /// </returns> public static IEnumerable <Consensus.Common.SysConfig> FetchAllBySellingCompanyId(ConsensusSite site, System.String sellingCompanyId) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); IEnumerable <Consensus.Common.ISysConfigModel> collection = provider.Common.SysConfig.FetchAllBySellingCompanyId(sellingCompanyId); return(collection.Select(model => new Consensus.Common.SysConfig(model))); }
/// <summary> /// Retrieves a collection of <see cref="!:SysConfigModel" /> instances. /// </summary> /// <param name="sellingCompanyId"> /// The value which identifies the <see cref="!:SysConfigModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:SysConfigModel" /> instances that match the specified <paramref name="sellingCompanyId" />. /// </returns> public static IEnumerable <Consensus.Common.SysConfig> FetchAllBySellingCompanyId(System.String sellingCompanyId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(SysConfig.FetchAllBySellingCompanyId(site, sellingCompanyId)); }
/// <summary> /// Retrieves a specific <see cref="!:SysConfigModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:SysConfigModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:SysConfigModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Common.SysConfig FetchById(System.Int32 id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(SysConfig.FetchById(site, id)); }
public static System.String GetTableName(ConsensusSite site) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); return(provider.Contact.Location.GetTableName()); }
/// <summary> /// Retrieves a collection of <see cref="!:OrganisationAddressModel" /> instances. /// </summary> /// <param name="organisationId"> /// The value which identifies the <see cref="!:OrganisationAddressModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:OrganisationAddressModel" /> instances that match the specified <paramref name="organisationId" />. /// </returns> public static IEnumerable <Consensus.Contact.OrganisationAddress> FetchAllByOrganisationId(System.String organisationId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(OrganisationAddress.FetchAllByOrganisationId(site, organisationId)); }
/// <summary> /// Retrieves a collection of <see cref="!:LocationModel" /> instances. /// </summary> /// <param name="linkedLocationId"> /// The value which identifies the <see cref="!:LocationModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:LocationModel" /> instances that match the specified <paramref name="linkedLocationId" />. /// </returns> public static IEnumerable <Consensus.Contact.Location> FetchAllByLinkedLocationId(System.String linkedLocationId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Location.FetchAllByLinkedLocationId(site, linkedLocationId)); }
/// <summary> /// Retrieves a collection of <see cref="!:OrganisationAddressModel" /> instances. /// </summary> /// <param name="organisationId"> /// The value which identifies the <see cref="!:OrganisationAddressModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:OrganisationAddressModel" /> instances that match the specified <paramref name="organisationId" />. /// </returns> public static IEnumerable <Consensus.Contact.OrganisationAddress> FetchAllByOrganisationId(ConsensusSite site, System.String organisationId) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); IEnumerable <Consensus.Contact.IOrganisationAddressModel> collection = provider.Contact.OrganisationAddress.FetchAllByOrganisationId(organisationId); return(collection.Select(model => new Consensus.Contact.OrganisationAddress(model))); }
/// <summary> /// Retrieves a collection of <see cref="!:PaymentCardModel" /> instances. /// </summary> /// <param name="organisationId"> /// The value which identifies the <see cref="!:PaymentCardModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PaymentCardModel" /> instances that match the specified <paramref name="organisationId" />. /// </returns> public static IEnumerable <Consensus.Finance.PaymentCard> FetchAllByOrganisationId(ConsensusSite site, System.String organisationId) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); IEnumerable <Consensus.Finance.IPaymentCardModel> collection = provider.Finance.PaymentCard.FetchAllByOrganisationId(organisationId); return(collection.Select(model => new Consensus.Finance.PaymentCard(model))); }
/// <summary> /// Check if Location Reference exist or not. /// </summary> /// <param name="reference"> /// Location Reference. /// </param> /// <param name="locationId"> /// Id of Location. /// </param> /// <returns> /// Whether loction exist or not. /// </returns> public static System.Boolean CheckIfLocationReferenceExist(System.String reference, System.String locationId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Location.CheckIfLocationReferenceExist(site, reference, locationId)); }
/// <summary> /// Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances. /// </summary> /// <param name="letterTemplateId"> /// The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="letterTemplateId" />. /// </returns> public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllByLetterTemplateId(System.String letterTemplateId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCheque.FetchAllByLetterTemplateId(site, letterTemplateId)); }
/// <summary> /// Check if Location Reference exist or not. /// </summary> /// <param name="reference"> /// Location Reference. /// </param> /// <param name="locationId"> /// Id of Location. /// </param> /// <returns> /// Whether loction exist or not. /// </returns> public static System.Boolean CheckIfLocationReferenceExist(ConsensusSite site, System.String reference, System.String locationId) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); return(provider.Contact.Location.CheckIfLocationReferenceExist(reference, locationId)); }
/// <summary> /// Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances. /// </summary> /// <param name="cardholderRoleId"> /// The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="cardholderRoleId" />. /// </returns> public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllByCardholderRoleId(ConsensusSite site, System.String cardholderRoleId) { IBusinessProvider provider = site.GetService <IBusinessProvider>(); IEnumerable <Consensus.Finance.IPaymentChequeModel> collection = provider.Finance.PaymentCheque.FetchAllByCardholderRoleId(cardholderRoleId); return(collection.Select(model => new Consensus.Finance.PaymentCheque(model))); }
/// <summary> /// Creates a new <see cref="!:LocationModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:LocationModel" /> instance. /// </returns> public static Consensus.Contact.Location Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Location.Create(site)); }
/// <summary> /// Retrieves all instances of the <see cref="!:PaymentChequeModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:PaymentChequeModel" /> instances. /// </returns> public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCheque.FetchAll(site)); }
/// <summary> /// Retrieves all instances of the <see cref="!:LocationModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:LocationModel" /> instances. /// </returns> public static IEnumerable <Consensus.Contact.Location> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Location.FetchAll(site)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCheque.GetTableName(site)); }
/// <summary> /// Retrieves a specific <see cref="!:LocationModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:LocationModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:LocationModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Contact.Location FetchById(System.String id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Location.FetchById(site, id)); }
/// <summary> /// Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances. /// </summary> /// <param name="sellingCompanyId"> /// The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="sellingCompanyId" />. /// </returns> public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllBySellingCompanyId(System.String sellingCompanyId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PaymentCheque.FetchAllBySellingCompanyId(site, sellingCompanyId)); }
/// <summary> /// Creates a new <see cref="!:SysConfigModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:SysConfigModel" /> instance. /// </returns> public static Consensus.Common.SysConfig Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(SysConfig.Create(site)); }