asp.net-mvc – ActionResult上的自定义属性

asp.net-mvc – ActionResult上的自定义属性

这可能是菜鸟的问题,但是 假设我有一个ActionResult,我只想在几个小时后授予访问权限. 我们还说我想用自定义属性来装饰我的ActionResult. 所以代码可能看起来像 [AllowAccess(after=17:00:00, before=08:00:00)]public ActionResult AfterHoursPage(){ //Do s

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部