public int OrderWork(string typeOrder, string token, ref string description, ref OrderMobile orderMobile) { orderGet = new OrderGet(); int stateOrder = 1; if (CrossConnectivity.Current.IsConnected) { if (typeOrder == "OrderMobileGet") { stateOrder = orderGet.OrederMobile(token, ref description, ref orderMobile); } } orderGet = null; return(stateOrder); }
public int OrderWork(string typeOrder, string token, ref string description, ref List <Order> orders) { orderGet = new OrderGet(); int stateOrder = 1; if (CrossConnectivity.Current.IsConnected) { if (typeOrder == "OrderGet") { stateOrder = orderGet.ActiveOreder(token, ref description, ref orders); } } orderGet = null; return(stateOrder); }