get controller name in startup asp core code example Example: get controller name from ActionExecutingContext .net 4.x filterContext.ActionDescriptor.ActionName