我需要在基于动作模型中的属性使用ActionFilter执行动作后运行一些代码,如何获取 OnActionExecuted 中的属性值?
模型
public class Profile
{
public Guid Id { get; set; }
public string Name { get; set; }
}
行动
public BotProfileDTO Update(Profile profile)
{
}
动作过滤器
public override void OnActionExecuted(ActionExecutedContext context)
{
//How to get profile Id here
}