public Task <int> CreateMerchantBasic(MerchantBasic merchantBasic) { _context.merchantBasics.Add(merchantBasic); return(_context.SaveChangesAsync()); }
public async Task Handle(MerchantRegisteredIntergrationEvent @event) { MerchantBasic newMerchant = new MerchantBasic(@event.Id); await _repository.CreateMerchantBasic(newMerchant); }