public async Task <ActionResult <ApiResponse <LoginStatus> > > RegisterUser([FromBody] Register register) { try { if (register is null || string.IsNullOrWhiteSpace(register.Email) || string.IsNullOrWhiteSpace(register.Password)) { return(BadRequest(RequestResponse.BadRequest("Please check your input."))); } var result = await firebaseAuthService.RegisterUser(register); return(Ok(new ApiResponse <LoginStatus>(result))); } catch (Exception) { return(BadRequest(RequestResponse.BadRequest("Something went wrong during the registration."))); } }