Question: how to pass data from controller to controller using tempdata?
Answer: Pass data using TempData dictionary The RedirectToAction() method is then used to take the control to the Index() action of Home2 controller. The above code reads the Customer object from TempData dictionary and passes it to the Index view.