I pass a Model value(Id) action to action like this:
Controller part:
return RedirectToAction("SaveAction", "MyController", new { MyId= model.Id});
View part:
@Html.HiddenFor(model => model.Id)
Another View example:
@Html.ActionLink("Delete", "Delete", new { MyId= Model[i].Id, AnotherId= Model.[i].AnotherId})
And on link bar, it's being showed like this:
http://localhost:9151/Controller/Save?Id=180
When I change "180" to "181", user can see Id=181's all values related View. It's an important security problem for me and users can not reach other Id values like 181, 182, 183 etc.
How can i pass Id value safely to action to action and how can i not show Id value in browser's link bar?
Is there an easy way to do this?