Exemple #1
0
        public List <Order> GetWeeklyOrders()
        {
            int year  = DateTime.Now.Year;
            var week  = ConverterManager.GetWeek(DateTime.Now);
            var oders = table.ToList().Where(s => s.date.Year == year && ConverterManager.GetWeek(s.date) == week).ToList();

            return(oders);
        }
Exemple #2
0
        public List <Order> GetWeeklyOrdersForAStore(int storeID)
        {
            int year   = DateTime.Now.Year;
            int week   = ConverterManager.GetWeek(DateTime.Now);
            var orders = GetOrdersByStoreID(storeID).Where(s => s.date.Year == year && ConverterManager.GetWeek(s.date) == week).ToList();

            return(orders);
        }
Exemple #3
0
        public List <Payment> GetWeeklyPaymentsForAStore(int storeID)
        {
            int year     = DateTime.Now.Year;
            int week     = ConverterManager.GetWeek(DateTime.Now);
            var payments = GetPaymentsForAStore(storeID).Where(s => s.date.Year == year && ConverterManager.GetWeek(s.date) == week).ToList();

            return(payments);
        }