public List <Order> GetAllOrders()
        {
            List <Order> result  = new List <Order>();
            DataTable    rawData = Orderctx.GetAllOrders();

            foreach (DataRow dr in rawData.Rows)
            {
                result.Add(DataRowToOrder(dr));
            }
            return(result);
        }
Esempio n. 2
0
 public List <OrderDto> GetAllOrders()
 {
     return(_orderContext.GetAllOrders());
 }
Esempio n. 3
0
 public List <Order> GetAllOrders()
 {
     return(context.GetAllOrders());
 }