Esempio n. 1
0
        public IHttpActionResult Get(
            int page         = 1,
            int itemsPerPage = 10,
            string sortBy    = "TruckC",
            bool reverse     = false,
            string search    = null,
            string partNo    = null)
        {
            var custDatatable = _truckService.GetTrucksForTable(page, itemsPerPage, sortBy, reverse, search, partNo);

            if (custDatatable == null)
            {
                return(NotFound());
            }
            return(Ok(custDatatable));
        }