public ActionResult LoadData(int page, int size, string date, string user, string advert, string state) { var totalRecord = new TrackListingData().CountData(page, size, date, user,advert,state); var totalTemp = Convert.ToDecimal(totalRecord) / Convert.ToDecimal(size); var totalPages = Convert.ToInt32(Math.Ceiling(totalTemp)); var model = new ListingTeamViewModel { ListItem = new TrackListingData().GetData(page, size, date, user, advert, state), TotalRecords = Convert.ToInt32(totalRecord), TotalPages = totalPages, CurrentPage = page, PageSize = size }; return PartialView("_DataResult", model); }
public ActionResult Index() { var model = new ListingTeamViewModel(); return View(model); }