protected async Task HandleValidSubmit() { EventDetailViewModel.CategoryId = Guid.Parse(SelectedCategoryId); ApiResponse <Guid> response; if (SelectedEventId == Guid.Empty) { response = await EventDataService.CreateEvent(EventDetailViewModel); } else { response = await EventDataService.UpdateEvent(EventDetailViewModel); } HandleResponse(response); }