예제 #1
0
        ICollection <Payment> IService1.GetAllPayment()
        {
            List <Payment> list = new List <Payment>();

            foreach (var item in _bll.GetAllPayment())
            {
                Payment payment = new Payment
                {
                    Id   = item.Id,
                    Name = item.Name
                };
                list.Add(payment);
            }
            return(list.ToArray());
        }