public static List <LotteryCouponModel> GetLotteryCoupon(string productGroupId) { var data = DalGroupBuyingProductGroupConfig.GetLotteryCouponList(productGroupId); var result = new List <LotteryCouponModel>(); if (data.Any()) { foreach (var item in data) { var resultItem = GetCouponDetail(item.Item1, productGroupId); if (resultItem != null) { resultItem.Creator = item.Item2; result.Add(resultItem); } } } return(result); }