public ActionResult Details(int id) { CustomerProfileViewModel Customer = new CustomerProfileViewModel(Customers.GetById(id), Appointments.GetByCustomerId(id), Orders.GetByCustomerId(id)); return(View(Customer)); }