diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor index 9804a8a..a1a5450 100644 --- a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor +++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor @@ -82,6 +82,7 @@ private async Task SendResponse(bool response) { + if(ValidateProfiles()) { if(_response == null) { _response = new Response(); @@ -96,13 +97,6 @@ _response = await EventRegistrationService.UpdateResponseAsync(_response); } if(_response != null) Status = _response.ResponseType; - } - - private async void Zusage() - { - if(ValidateProfiles()) - { - await SendResponse(true); } else { var currentPathAndQuery = new Uri(NavigationManager.Uri).PathAndQuery; @@ -113,19 +107,14 @@ } } + private async void Zusage() + { + await SendResponse(true); + } + private async void Absage() { - if(ValidateProfiles()) - { await SendResponse(false); - } else - { - var currentPathAndQuery = new Uri(NavigationManager.Uri).PathAndQuery; - var encodedReturnUrl = Uri.EscapeDataString(currentPathAndQuery); - var link = $"/profile?tab=profile&returnurl={encodedReturnUrl}"; - - AddModuleMessage(string.Format(SharedLocalizer["ProfileRequired"], $"Vervollständige hier dein Profil mit deinem Jahrgang und deiner Fachrichtung: {link}"), MessageType.Warning); - } } protected override async Task OnInitializedAsync()