Example #1
0
        public static List <SalesInfo> GetSalesByDateRange(string from, string to, string empid)
        {
            var dal = new SalesInfoDAL();

            var collection = new List <SalesInfo>();

            foreach (DataRow row in dal.GetSalesByDateRange(from, to, empid).Rows)
            {
                var ins = new SalesInfo();
                ins.Bind(row);
                collection.Add(ins);
            }

            return(collection);
        }