/// <summary> /// This method is used to Searchbasic /// </summary> /// <param name="keyword"></param> /// <param name="page"></param> /// <returns></returns> public ActionResult BasicSearch(string keyword, int page = 1) { list = _promotionService.BasicSearch(keyword); TotalPage = _promotionService.GetTotalPage(list.Count(), itemperpage); ViewBag.Pages = TotalPage; ViewBag.CurPage = page; ViewBag.Select = "active"; ViewBag.keyword = keyword; ViewBag.Count = list.Count(); return(View("Index", _promotionService.Paging(list, itemperpage, page))); }