Ejemplo n.º 1
0
        public async Task <IReadOnlyList <ClientDialogModel> > GetPreTradeDialogsAsync(string clientId, string assetId)
        {
            if (!clientId.IsValidPartitionOrRowKey())
            {
                throw new ValidationApiException($"{nameof(clientId)} is invalid");
            }

            var dialogs = await _dialogConditionsService.GetDialogsWithPreTradeConditionAsync(clientId, assetId);

            return(Mapper.Map <IReadOnlyList <ClientDialogModel> >(dialogs));
        }