public bool Register(string phoneNumber, string password, string name) { if (_authRepository.CheckUserExists(phoneNumber)) { throw new Exception("the specified phone number has already been registered"); } else { return(_authService.Register(phoneNumber, password, name)); } }