Don Thomas Boyle
Don Thomas Boyle

Reputation: 3045

Passing Model through RedirectAction is null


I've been looking for couple hours now only came across This Question that doesn't have a specific answer yet either.

There a good reason for this? / What am I doing wrong?

Upvotes: 2

Views: 2684

Answers (1)

sino
sino

Reputation: 776

you are not passing "ViewModelViewImages" , instead you are passing new { passedModel = model } just pass the model and you should be fine .

public ActionResult Index(ViewModelViewImages model)
{
    return RedirectToAction("ViewImages",   model  );
}

Upvotes: 4

Related Questions