public ActionResult Admindashboard() { DashboardModel model = new DashboardModel(); model.TotalEvent = EventService.GetAllEvents().Count(); model.RegisteredUser = RegisteredUserService.GetAllRegisteredUser().Count(); model.TotalCustomers = CustomerService.GetTotalCustomers(); model.TotalPurchase = CustomerService.GetTotalPurchase(); model.ActiveCustomers = CustomerService.GetActiveCustomers(); return(View(model)); }