Skip to content

Instantly share code, notes, and snippets.

@jesulink2514
Last active January 3, 2016 22:53
Show Gist options
  • Save jesulink2514/4e221c96280dcd9d4910 to your computer and use it in GitHub Desktop.
Save jesulink2514/4e221c96280dcd9d4910 to your computer and use it in GitHub Desktop.
AuditFilter - Paso 2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web;
using System.Web.Http.Controllers;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
namespace AuditSample.Models
{
public class AuditFilter:FilterAttribute, IActionFilter
{
public void OnActionExecuting(ActionExecutingContext filterContext)
{
var model = filterContext.ActionParameters.First().Value as IAuditRequest;
}
public void OnActionExecuted(ActionExecutedContext filterContext)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment