I want to replace
public IActionResult Index()
{
ViewData["SomeData"] = ...
return View();
}
with
public IActionResult Index()
{
_someDataCretor.Create(...);
return View();
}
What should happen in SomeDataCretor.Create() for this to work? For View to get ViewData.
Thanks.
