【发布时间】:2019-05-08 08:11:21
【问题描述】:
我需要在基于动作模型中的属性使用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
}
【问题讨论】:
标签: .net-core action-filter onactionexecuted