Example #1
0
        public IActionResult Index()
        {
            if (TempData["ModifySuccess"] != null)
            {
                ViewBag.ModifySuccess = CheckError.Success;
            }
            string strPage = HttpContext.Request.Query["page"].ToString();
            int    page    = Convert.ToInt32(strPage == "" ? "1" : strPage);

            ViewBag.cs = _ICategoryrepo.GetDataACE();
            List <BusView> listBus = _IBusrepo.GetAllBus(page);

            ViewBag.Rows = _IBusrepo.CountAllBus();
            return(View(listBus));
        }