httpContextAccessor.HttpContext?.Items["User"] I am storing Id of user that performs calls. profileId I would prefer that it would be injected into constructor itself or injected into method. How to achieve this? For example something like thisJoin the Discord to ask follow-up questions and connect with the community
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470 Members
Join