pass value to another action in controller in mvc core code example
Example: pass data from one controller to another controller mvc
public ActionResult Index()
{
TempData["mydata"] = data;
}
public ActionResult Index()
{
TempData["mydata"] = data;
}