Пример #1
0
 /// <summary>
 /// Converts Dto BusinessChangeRequest
 /// </summary>
 /// <param name="providerChangeRequest">Provider Change Request Dto</param>
 /// <returns>BusinessChangeRequest</returns>
 public static BusinessChangeRequest ProviderChangeRequestDtoToBusinessChangeRequest(ProviderChangeRequestDto providerChangeRequest)
 {
     return new BusinessChangeRequest
     {
         BusinessId = providerChangeRequest.ProviderId.ToLong(),
         ChannelGuid = providerChangeRequest.DistributorId,
         IsOptinActive = providerChangeRequest.IsOptinActive,
         Action = (BusinessChangeRequestType)providerChangeRequest.Action
     };
 }
Пример #2
0
        /// <summary>
        /// Add provider change message to the queue
        /// </summary>
        /// <param name="providerChangeRequest">Provider Change request message</param>
        /// <returns>True if successful</returns>
        public bool AddProviderChangeMessage(ProviderChangeRequestDto providerChangeRequest)
        {
            var providerChange = DataTransferObjectsConverter.ProviderChangeRequestDtoToBusinessChangeRequest(providerChangeRequest);

            return businessManager.AddBusinessChangeToPushQueue(providerChange);
        }