public async Task OnPostAsync() { if (ModelState.IsValid) { _succeeded = true; var updData = await MapToDto(Input); _userRegistrationService.UserUpdated += UpdateSuccess; _userRegistrationService.UpdateFailed += UpdateFailed; await _userRegistrationService.Update(updData); } }