public async Task <string> CreateUser(string cpf, string email) { var user = new ApplicationUser { UserName = cpf, Email = email, EmailConfirmed = true, User_Type = user_type.Vendedor }; var result = await _userManager.CreateAsync(user, cpf); if (!result.Succeeded) { _notifications.AddIdentityErrors(result); return(null); } return(user.Id); }