How to implement a Unit of work containing the new IdentityUser
问题 I am wondering what is the best way to add the UserManager to my Unit of work. Should I use the IUstrore interface and add a new UserManager in my controller? Should I just use UserManager in my UnitOfWork or should I do something different? Here is two ideas I had for my unit of work and controller implementation. public class UnitOfWorkPds : IUnitOfWorkPds, IDisposable { private ApplicationDbContext context = new ApplicationDbContext(); private IUserStore<ApplicationUser> userStore; public