コード例 #1
0
        private void LoadData(string searchText, int?styleType, int pageNumber)
        {
            int totalCount;

            LoadFlavors();

            IList <Closet> lstClosets = closetRepository.Search(this.UserId, searchText, styleType, 10, pageNumber, out totalCount);

            ViewData["closets"]      = lstClosets;
            ViewData["totalClosets"] = totalCount;
            ViewData["styleAlerts"]  = contentService.GetRandomStyleAlerts();
            ViewData["Pages"]        = Common.PagingHelper.Paging(totalCount, 1, 10, 6);
        }