TempData is a Dictionary object derived from the TempDataDictionary class.
Both ViewData and ViewBag are used to pass data from a controller to a view.
ViewBag is also used to transfer data from a controller to a view.
ViewData passes data from a controller to a view.
Razor is a syntax, based on the ASP.NET Framework that allows creating views.