title: How can i write custom attribute for functions to do something and redirect in asp .net mvc 5 c#
body: <p>I want to write my own authorize attribute (like [authorize] but not in Asp .net Identity) to check in db and if user has not authorize redirect him to somewhere. can anyone help?</p>