Ejemplo n.º 1
0
        public static List<Discount> GetAllData()
        {
            var dal = new DiscountDAL();
            var collection = new List<Discount>();

            foreach (DataRow row in dal.GetAllData().Rows)
            {
                var instance = new Discount();
                instance.Bind(row);

                collection.Add(instance);
            }

            return collection;
        }
Ejemplo n.º 2
0
        public static bool InsertNewDiscount(Discount instance)
        {
            var dal = new DiscountDAL();

            return dal.InsertNewDiscount(instance);
        }