You can do share / pass data between controllers using TEMPDATA
Using TempData you can pass data from one controller to another.
using Tempdata, you can also use Session
We can share the data between controller by using TempData["Variable"]=value;
by using TempData
Using the $rootScope to add the data on
You can share Your data between Controller through Tempdata.write syntax as below-Tempdata[“data”]=username;
Hi, Using with TempData achieve this. More detail visit the following url - https://www.aspsnippets.com/Articles/Pass-send-data-from-one-Controller-to-another-Controller-in-ASPNet-MVC.aspx
Tempdata[“data”]=”value”;
you can use tempdata . basically teamdata is a property of controllerbase class