I want to pass two values from controller action to asp.net MVC 3 Razor view. I am doing like this in action method:
var model = new { reportid = rid, refno = refernumber};
return View(model );
but when i try to access it in view like this:
@Model.reportid
I get, object doesn't contain property reportid
How can I pass multiple values without using viewbag ?