Class PromoCodeService

Class PromoCodeService#

Inheritance Relationships#

Base Type#

Class Documentation#

class xbe.sdk.Services.PromoCodeService : xbe.sdk.ServiceBase#

Public Functions

PromoCodeService ()#
Task<List<PromoCode>> FindAll (Dictionary<string, string> query = null)#

Returns all codes from the system that the user has access to.

Task<PromoCode> Create (PromoCode obj)#

Create a new code.

Task<PromoCode> FindById (string id)#

Returns a single code from the system that the user has access to.

Task<PromoCode> Update (string id, PromoCode obj)#

Updates a single code.

Task<long?> Count (Dictionary<string, string> query = null)#

Retrieves the Entities Count based on the given criteria.

Return:

Entity Count

Task Delete (string id)#

Deletes an instance of T with the specified unique identifier.

Return:

Task

Task Truncate (Dictionary<string, string> query = null)#

Deletes all Entities from the service.

Return:

Task