public ActionResult ShowDetailsForCustomer(int customerId) { var model = new CustomerModel(); model.GetMeterDetailsForCustomer(customerId); ViewBag.currentAddressForJS = model.Customer.Address; return(View(model)); }