public async Task AddUser(UserRegisterModel userRegisterModel) { userRegisterModel.Validation(); if (await VerifyEmailExists(userRegisterModel.Email)) { throw new BadRequestException("Já existe um usuário com esse e-mail"); } await _context.Users.AddAsync(userRegisterModel.ConvertToUser()); await _context.SaveChangesAsync(); }