November Happy Hour will be moved to Thursday December 5th.

Interface IMarketService

Namespace: Mediachase.Commerce.Markets
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public interface IMarketService

Methods

CreateMarket(IMarket)

Adds a new market to the market system.

Declaration
void CreateMarket(IMarket market)
Parameters
Type Name Description
IMarket market

The market to add.

DeleteMarket(MarketId)

Deletes a market by ID.

Declaration
void DeleteMarket(MarketId marketId)
Parameters
Type Name Description
MarketId marketId

The ID of the market to delete.

GetAllMarkets()

Gets all markets in the system.

Declaration
IEnumerable<IMarket> GetAllMarkets()
Returns
Type Description
System.Collections.Generic.IEnumerable<IMarket>

An enumerable of the markets.

GetMarket(MarketId)

Get a single market by ID.

Declaration
IMarket GetMarket(MarketId marketId)
Parameters
Type Name Description
MarketId marketId

The ID of the market to fetch.

Returns
Type Description
IMarket

The market with the specified ID, or null if the ID is not found.

UpdateMarket(IMarket)

Updates an existing market in the market system.

Declaration
void UpdateMarket(IMarket market)
Parameters
Type Name Description
IMarket market

The market to save over an existing market.