Exemple #1
0
        public ICollection <Payment> GetAllPayment()
        {
            List <BLL.Models.Payment> list = new List <BLL.Models.Payment>();

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