ASP.NET Identity, get User ID on POST Request
Hello,
I'm currently learning ASP.NET Identity and would like to make a Recomendations Website. Currently I've a Model File which has a userID datafield which has a Foreign Key to the IdentityUser.Id. Now my question is how can I add the Current Logged In User ID into this field without any Security Problems? I coul'dnt really find anything on google and if then just things that doesnt work or exist anymore.
I'm currently learning ASP.NET Identity and would like to make a Recomendations Website. Currently I've a Model File which has a userID datafield which has a Foreign Key to the IdentityUser.Id. Now my question is how can I add the Current Logged In User ID into this field without any Security Problems? I coul'dnt really find anything on google and if then just things that doesnt work or exist anymore.