예제 #1
0
        public async Task <Manboss_mandado> ActiveOrder()
        {
            int repartidorID = User.Repartidor.Repartidor;

            order = await data.ActiveOrder(repartidorID, 3);

            if (order != null)
            {
                Client = await data.Client(order.Cliente);
            }

            return(order);
        }
예제 #2
0
        public async Task <List <Manboss_mandado> > PendingOrders()
        {
            int repartidorID = User.Repartidor.Repartidor;

            orders = await data.PendingOrders(repartidorID, 2);

            active = await data.ActiveOrder(repartidorID, 3);

            if (active != null)
            {
                orders.Insert(0, active);
            }

            return(orders);
        }