Erro seria esse: OnActionExecuting System.Web.Mvc.ActionExecutedContext: no suitable method found to override
Error 3 'CaelumEstoque.Filtros.AutorizacaoFilterAttribute.OnActionExecuting(System.Web.Mvc.ActionExecutedContext)': no suitable method found to override C:\Users\OS\Documents\Visual Studio 2013\Projects\CaelumEstoque\CaelumEstoque\Filtros\AutorizacaoFilterAttribute.cs 15 30 CaelumEstoque codigo de filtro using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; //ActionFilterAttribute namespace CaelumEstoque.Filtros { public class AutorizacaoFilterAttribute : ActionFilterAttribute {
public override void OnActionExecuting(ActionExecutedContext filterContext) { object usuario = filterContext.HttpContext.Session["usuarioLogado"]; if (usuario == null) { filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Login", action = "Index" })); } } } } fim codigo filtro