public List <CardType> CardTypes() { try { List <CardType> types = TransactionDAO.GetCardTypes(); List <CardTopup> prices = TransactionDAO.GetListCardPrices(); types.ForEach((i) => { i.Prices = prices.Where(x => x.CardType == i.Type).ToList(); }); } catch (Exception ex) { NLogManager.PublishException(ex); } return(null); }