Exemple #1
0
        public ActionResult <List <User> > ListUsers()
        {
            //Note: calling sessionId method will login when called
            var result = usersService.ListUsers(mocaService.sessionId()).Result;

            return(result);
        }
Exemple #2
0
        public ActionResult <List <ShipmentHeaderModel> > GetShipments(int top = 10, string trailerNumber = null
                                                                       , string orderNumber       = null
                                                                       , string documentNumber    = null
                                                                       , string dispatchDate      = null
                                                                       , string shipmentId        = null
                                                                       , string begindispatchDate = null
                                                                       , string enddispatchDate   = null)
        {
            var result = shipmentsService.GetShipments(mocaService.sessionId(), top, trailerNumber
                                                       , orderNumber
                                                       , documentNumber
                                                       , dispatchDate
                                                       , shipmentId
                                                       , begindispatchDate
                                                       , enddispatchDate).Result;

            return(result);
        }
        //[Produces("application/json")]
        public ActionResult <List <Order> > GetOrders()
        {
            var result = ordersService.GetOrders(mocaService.sessionId()).Result;

            return(result);
        }