public async Task Consume(ConsumeContext <AddMoneyMqCmd> context) { var response = await _service.AddMoney(context.Message.Id, context.Message.AddCoins, context.Message.AddCarry, context.Message.Reason); await context.RespondAsync(response); }
public async Task Consume(ConsumeContext <AddMoneyMqCommand> context) { var response = await _service.AddMoney(context.Message.Id, context.Message.AddCoins, context.Message.AddCarry); await context.RespondAsync <BodyResponse <MoneyMqResponse> >(response); }