Table of Contents

Class LedgerTypeService

Namespace
Dynamicweb.Ecommerce.Ledgers
Assembly
Dynamicweb.Ecommerce.dll
public sealed class LedgerTypeService
Inheritance
LedgerTypeService
Inherited Members

Methods

Delete(LedgerType)

Deletes the specified LedgerType if it exists.

public void Delete(LedgerType ledgerType)

Parameters

ledgerType LedgerType

The identifier of the ledger type to delete (must be greater than 0).

GetAllLedgerTypes()

Returns all ledger types from the repository.

public IEnumerable<LedgerType> GetAllLedgerTypes()

Returns

IEnumerable<LedgerType>

An IEnumerable<T> sequence of all LedgerType entities.

GetLedgerTypeById(string)

Gets a single LedgerType by its id.

public LedgerType? GetLedgerTypeById(string id)

Parameters

id string

The ledger type id.

Returns

LedgerType

Save(LedgerType)

Saves a LedgerType to the database.

public void Save(LedgerType ledgerType)

Parameters

ledgerType LedgerType

The entity to create or update.

To top