public LoginController(UserManagerFactory userManagerFactory, SignInManagerFactory signInManagerFactory) { _userManagerFactory = userManagerFactory ?? throw new NullReferenceException("userManagerFactory cannot be null"); _signInManagerFactory = signInManagerFactory ?? throw new NullReferenceException("signInManagerFactory cannot be null"); }