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); }
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); }