コード例 #1
0
        public List <PaymentTypeDAO> GetPaymentTypes()
        {
            var returnList = new List <PaymentTypeDAO>();

            foreach (var item in data.GetPaymentTypes())
            {
                returnList.Add(PaymentTypeMapper.MapToPaymentTypeDAO(item));
            }

            return(returnList);
        }
コード例 #2
0
 public PaymentTypeDAO GetPaymentType(int id)
 {
     return(PaymentTypeMapper.MapToPaymentTypeDAO(data.GetPaymentType(id)));
 }