Пример #1
0
 public Task <List <Order> > GetOrdersAsync(Day day)
 {
     return(Task.Factory.StartNew(() => this.GetOrders(day)));
 }
Пример #2
0
        public List <Order> GetOrders(Day day)
        {
            List <Order> orders = (from qr in _database.Table <Order>().ToList() where qr.Date.Day == day.DateTime.Day orderby qr.TimeString select qr).ToList();

            return(orders);
        }