locked
What is the replacement for return View(model: MyModel); RRS feed

  • Question

  • I expected to see something like return Page(model: MyModel); in ASP Razor Pages.

    So i can return Pages which does not have PageModel.

    I cant use TempData as MyModel is a complex type.

    I want the same functionality we have with ASP MVC return View(model: MyModel);

    Thank you.

    Saturday, December 7, 2019 10:30 AM