protected override async Task ConsumeMessages(ConsumeResult <MessageHeader, NewCustomerTopic> message)
 {
     await _service.NewCustomerAsync(message.Value.FirstName, message.Value.LastName, c =>
     {
         c.CreatedBy = message.Key.CurrentUser;
         c.UpdatedBy = message.Key.CurrentUser;
         c.Tested    = message.Key.IsCurrentUserDemo;
     });
 }
        public override async Task <Reply> NewCustomer(NewCustomerReq request, ServerCallContext context)
        {
            var reply = new Reply {
                Success = true
            };

            try
            {
                await _customerService.NewCustomerAsync(request.FirstName, request.LastName);
            }
            catch (Exception ex)
            {
                reply.Success = false;
                reply.Message = $"{GetExeptionMessage(ex)}";
            }

            return(reply);
        }