public Task <List <Order> > GetOrdersAsync(Day day) { return(Task.Factory.StartNew(() => this.GetOrders(day))); }
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); }