示例#1
0
        // GET: Product
        public ActionResult Index(int currentPage = 1)
        {
            var CurrentUserId = ((TradeBulk_Web.Authe_AuthoATION.CustomPrincipal)HttpContext.User).UserId;
            List <NewProductViewModel> lsproduct    = pMgnt.GetCurrentUserProductList(CurrentUserId, PageSize, currentPage, out TotalPages);
            ListEditViewModel          listofRecord = new ListEditViewModel();

            listofRecord.Elements   = lsproduct;
            listofRecord.PagingInfo = new PagingInfo()
            {
                TotalItems = TotalPages, CurrentPage = currentPage, ItemsPerPage = PageSize
            };
            return(View(listofRecord));
        }