public async Task Handle(CreatedTripIntegrationEvent @event)
        {
            var entity = new Api2Model
            {
                UserId     = @event.TripId + " from Service bus",
                UpdateDate = DateTime.Now,
                Locations  = new List <Location>
                {
                    new Location {
                        Code = "A1", Description = "Test location 1", LocationId = 1
                    },
                    new Location {
                        Code = "A2", Description = "Test location 2", LocationId = 2
                    },
                    new Location {
                        Code = "A3", Description = "Test location 3", LocationId = 3
                    },
                }
            };
            await _repository.AddAsync(entity);

            var invoiceEvent = new CreatedInvoiceIntegrationEvent(Guid.NewGuid().ToString());

            _eventBus.Publish(invoiceEvent);
        }
 public async void Post([FromBody] string value)
 {
     var entity = new Api2Model
     {
         UserId     = value,
         UpdateDate = DateTime.Now,
         Locations  = new List <Location>
         {
             new Location {
                 Code = "A1", Description = "Test location 1", LocationId = 1
             },
             new Location {
                 Code = "A2", Description = "Test location 2", LocationId = 2
             },
             new Location {
                 Code = "A3", Description = "Test location 3", LocationId = 3
             },
         }
     };
     await _repository.AddAsync(entity);
 }