public ActionResult Index() { var product = _productRepository.GetAllProduct().Count(); var customer = _customerRepository.GetAllCustomersInfo().Count(); var orderItem = _orderItemRepository.GetAllOrderItems().Count(); var homeDisplay = new HomeDisplay { CustomerCount = customer, WishListCount = orderItem, ProductCount = product }; return(View(homeDisplay)); }