コード例 #1
0
        public async Task <string> ListPagination(int start, int limit)
        {
            VendorPagerList vendorPagerList = await _BadgerApiHelper.GenericGetAsync <VendorPagerList>("/vendor/listpageview/" + start + "/" + limit);

            dynamic VendorPageModal = new ExpandoObject();

            VendorPageModal.VendorCount = vendorPagerList.Count;
            VendorPageModal.VendorLists = vendorPagerList.vendorInfo;
            VendorPageModal.VendorType  = vendorPagerList.vendorType;

            return(JsonConvert.SerializeObject(VendorPageModal));
        }
コード例 #2
0
        public async Task <IActionResult> Index()
        {
            VendorPagerList vendorPagerList = await _BadgerApiHelper.GenericGetAsync <VendorPagerList>("/vendor/listpageview/0/0");

            dynamic VendorPageModal = new ExpandoObject();

            VendorPageModal.VendorCount = vendorPagerList.Count;
            VendorPageModal.VendorLists = vendorPagerList.vendorInfo;
            VendorPageModal.VendorType  = vendorPagerList.vendorType;

            return(View("Index", VendorPageModal));
        }