/// <summary>Get the permission manager from the context</summary>
 /// <typeparam name="TManager"></typeparam>
 /// <param name="context"></param>
 /// <returns></returns>
 public static TManager GetPermissionManager <TManager>(this IOwinContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException(nameof(context));
     }
     return(context.GetPermissionObject <TManager>());
 }