public ActionResult Index() { int TotalCustomers = service.DashboardGetTotalCustomers(); int TotalSuppliers = service.DashboardGetTotalSuppliers(); int TotalProducts = service.DashboardGetTotalProducts(); int TotalOrders = service.DashboardGetTotalOrders(); List <ProductViewModel> ListProduct = new List <ProductViewModel>(); ListProduct = service.DashboardGetAllProduct(); List <OrderViewModel> ListOrder = new List <OrderViewModel>(); ListOrder = service.DashboardGetAllOrders(); ViewBag.TotalCustomers = TotalCustomers; ViewBag.TotalSuppliers = TotalSuppliers; ViewBag.TotalProducts = TotalProducts; ViewBag.TotalOrders = TotalOrders; ViewBag.ListProducts = ListProduct; ViewBag.ListOrders = ListOrder; return(View()); }