public ControllerAction Get(ActionDescriptor actionDescriptor) { string httpVerb = actionDescriptor.GetHttpVerb(); return(DB.ControllerActions.SingleOrDefault(r => r.Controller == actionDescriptor.ControllerDescriptor.ControllerName && r.Action == actionDescriptor.ActionName && r.HttpVerb == httpVerb)); }