public virtual ActionResult List(string term = "", int page = 1, int count = 10, Order order = Order.Descending, ElectionSearchBy objSearchBy = ElectionSearchBy.Score, ElectionOrderBy objOrderBy = ElectionOrderBy.Id) { //#region Retrive Data int total; var articles = _ElectionService.GetDataTable(out total, term, page, order, objSearchBy, objOrderBy, count); var model = new ElectionListVM { Order = order, PageCount = count, PageNumber = page, ElectionList = articles, Term = term, TotalElections = total }; ViewBag.CountList = DropDown.GetCountList(count); ViewBag.OrderList = DropDown.GetOrderList(order); return(PartialView("_ListPartial", model)); }