public static int GetCurrentUserId(this IOwinContextAccessor owinContextAccessor) { return(owinContextAccessor.GetCurrentUserId <int>()); }