Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ZDemo.Validate1
- {
- public class ValidateRequest : ActionFilterAttribute
- {
- public override void OnActionExecuting(ActionExecutingContext filterContext)
- {
- /*further code*/
- }
- base.OnActionExecuting(filterContext);
- }
- }
- [Validate1.ValidateRequest]
- public ActionResult Add()
- {
- return View();
- }
Add Comment
Please, Sign In to add comment