Click or drag to resize

IEditSessionCreateClient Method

Creates new client. The client must have a card number or at least one phone number.

Namespace:  Resto.Front.Api.Editors
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll)
Syntax
C#
INewClientStub CreateClient(
	Guid id,
	string name,
	List<PhoneDto> phones,
	string cardNumber,
	DateTime? dateCreated
)

Parameters

id
Type: SystemGuid
Id of creating client
name
Type: SystemString
Name of client
phones
Type: System.Collections.GenericListPhoneDto
List of client phones. Cannot contain null values and more than one main phone (i.e. with property IsMain = true)
cardNumber
Type: SystemString
Discount card number or null if the client doesn't have discount card. If the discount card doesn't exist, consider creating one using [!:IOperationService.CreateOrUpdateDiscountCard].
dateCreated
Type: SystemNullableDateTime
Date when client was created. Must be not null, for actual reports by date created of clients.

Return Value

Type: INewClientStub
See Also