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