public IEnumerable<RedPacket> GetDispatchedRedPackets(int redPacketCount, decimal amount) { List<RedPacket> redPacketList = new List<RedPacket>(); for (int index = 0; index < redPacketCount; index++) { RedPacket redPacket = new RedPacket(); redPacket.Amount = amount; } return redPacketList; }
public IEnumerable <RedPacket> GetDispatchedRedPackets(int redPacketCount, decimal amount) { List <RedPacket> redPacketList = new List <RedPacket>(); for (int index = 0; index < redPacketCount; index++) { RedPacket redPacket = new RedPacket(); redPacket.Amount = amount; } return(redPacketList); }