This is my model Person
public int PersonId { get; set; }
public string FirstName { get; set; }
public string Email { get; set; }
public int CreatedUser { get; set; }
CreatedUser is for checking which user does an operation in each method and table.
How can I save UserId in CreatedUser in each method,
especially in the register method?
When a user wants to register, he initially has no User ID. How can I save the user ID?
I heard that I can save it in data storage but how?
All of my other tables should have this property CreatedUser.