public async Task <IActionResult> CreateLogin([FromBody] Login login) { var newLogin = _mapper.Map <Login>(login); await _loginManager.CreateLogin(newLogin); return(Ok()); }
public void CreateUserWithLogin(string userName, string password) { var user = _userManager.CreateUser(userName); _loginManager.CreateLogin(user, userName, password); }