Safely passing hidden data from view to controller

kristilove

New Member
In my application users are able to transfer points between them. In my view, i check if user can transfer points from his account, if he can, i render something that allows him to do that. I would not like to check that again in my controller, so i need some mechanism, that will allow me to check if user that i rendered a viewpage for, is the same as the one that is sending a request to my controller.So basically, i would like to check in my controller, if currently logged user is the same as the one that sent the request - and to do this, i think that i need something that works similar to ViewBag, but not from the controller to a view, but from view to a controller. Is that possible?
 
Back
Top