Click here to Skip to main content
15,905,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every Body.
I just want to know that is this possible to find if a user previously run an Action in a controller previously? If he/she did run it before should be restricted running the same action again?

What I have tried:

I haven't tried anything. As far as I am very new to the MVC.
Posted
Updated 4-Feb-17 13:49pm

1 solution

There is nothing built into ASP.NET or the .NET Framework that will do this for you. You have to implement an appropriate solution to this problem yourself.

One idea would be a state machine that you save to a database to track this and to reload on the next request to check the state the user is in. You have to track state yourself since web applications are stateless.
 
Share this answer
 
Comments
Karthik_Mahalingam 5-Feb-17 0:20am    
5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900