I can not understand. I have a registered account, for registration using asp indentity. And I want the user to be able to add cars to himself without the field for choosing the owner of the car from the name of his account, so that it would add itself.Can you please explain the implementation or send a code example, you can also link to the source of how to do it.
Asked
Active
Viewed 20 times
0
-
Is your question "how do I get the logged in user id in a controller method?" – ProgrammingLlama Apr 17 '22 at 07:52
-
@DiplomacyNotWar Yes – Maks Green Apr 17 '22 at 07:53
-
[Does this answer your question?](https://stackoverflow.com/questions/30701006/how-to-get-the-current-logged-in-user-id-in-asp-net-core) – ProgrammingLlama Apr 17 '22 at 07:56
-
@DiplomacyNotWar Thank you for your help, the question is a bit silly but Im also a newbie) – Maks Green Apr 17 '22 at 07:59