Guest User

Untitled

a guest
Jan 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. namespace ZDemo.Validate1
  2. {
  3. public class ValidateRequest : ActionFilterAttribute
  4. {
  5.  
  6. public override void OnActionExecuting(ActionExecutingContext filterContext)
  7. {
  8. /*further code*/
  9. }
  10. base.OnActionExecuting(filterContext);
  11. }
  12. }
  13.  
  14. [Validate1.ValidateRequest]
  15. public ActionResult Add()
  16. {
  17. return View();
  18. }
Add Comment
Please, Sign In to add comment