Код: Выделить всё
[ServiceFilter(typeof(LoggedInAttribute))]
[HttpPut("bio")]
public ActionResult ChangeBio(string UserId, string Bio)
{ ... }
Код: Выделить всё
public class LoggedInAttribute : ActionFilterAttribute
{
...
public async override void OnActionExecuting(ActionExecutingContext filterContext)
{
// HERE IS `filterContext.ActionArguments.Keys.Count` ALWAYS ZERO
// NO MATTER THE ACTION ITS CALLED FROM
}
...
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... ways-empty