Getting the current user in .Net Core Identity outside of the controller.
What is the best practice for this? Injecting the HttpContext, or inserting the current user Id into the class when its created? Or is there a way similar to the old MVC System.Web.HttpContext.CurrentUser?
0 comments:
Post a Comment