User-491950272 posted
Greetings,
If you want the eLeave and Payroll applications to access the same User Management System, then simply assign the same identity context to both applications. Moreover, if you want to get the id, then the class that is derived from IdentityUser class already
uses id that is generated uniquely for each user. To get that id, simple access the Id property of a particular user such as:
var result = UserManager.AddToRole(user.Id, "User"); //Getting the user id