Exemple #1
0
        /// <summary>
        /// This method is used to Search Advanced
        /// </summary>
        /// <param name="promotion"></param>
        /// <returns></returns>
        public ActionResult AdvancedSearch(string Name, string StartDate, string EndDate, int page = 1)
        {
            list      = _promotionService.AdvancedSearch(Name, StartDate, EndDate);
            TotalPage = _promotionService.GetTotalPage(list.Count(), itemperpage);

            ViewBag.Pages   = TotalPage;
            ViewBag.CurPage = page;
            ViewBag.Select  = "active";

            ViewBag.Name      = Name;
            ViewBag.StartDate = StartDate;
            ViewBag.EndDate   = EndDate;
            ViewBag.Count     = list.Count();

            return(View("Index", _promotionService.Paging(list, itemperpage, page)));
        }