Mohit Kala Jain

Mohit Kala Jain

  • 560
  • 1.9k
  • 123.3k

How To Create Custom Filter For Security In Mvc5

Feb 21 2018 9:13 PM
Hello All
                I Need Your Help Thanx in Advance
 
I have One Senario in mvc 5 Login,Register Without Identity 2.0
I Want To Create CustomAttribute For Its Security With Roles And Session 
For Exampe 
 
[Custom(Roles="Admin")]
i want to creae like that with session for every action
if other role it redirect unauthorized 
 
help me guys 
 

Answers (1)