title: for which purpose we need to use MVC Actionfilters like OnActionExecuting and OnActionExecuted?
body: <p>I know that how to use Actionfiltes in MVC but i am not understand that why we are using it, because we can write logic in action for both of this before execution and after then what is purpose of it?
  if any one give me proper example and explanation then it would be helpful me.</p>
  
  <p>Regards,
  Vinit Patel</p>