Ejemplo n.º 1
0
        private void printAllOrders()
        {
            Console.WriteLine("\t~*~ ~*~ ~*~ \tList of Orders with Items\t ~*~ ~*~ ~*~\n");

            foreach (var o in dalorder.GetAllOrders())
            {
                Console.WriteLine("ID: {0}\t| Customer: {1}\t | Status: {2}\t | Date: {3}\t\n " +
                                  "Comments: {4}\nLast Update at {5} \tby {6}",
                                  o.MainOrderID, getFullNameById(o.CustomerID), getStatusById(o.StatusID), o.Date,
                                  o.Comments, o.LastUpdate, getFullNameById(o.LastStaffUpdated.GetValueOrDefault(0)));
                printItemsInOrder(o.MainOrderID);
            }
        }
Ejemplo n.º 2
0
 public List <Order> GetAllOrders()
 {
     return(_orderDal.GetAllOrders());
 }
Ejemplo n.º 3
0
 public List <Order> GetAllOrders()
 {
     return(_orderDal.GetAllOrders()?.Select(order => new Order(order)).ToList());
 }