protected async Task CreateStudent() { try { var response = await StudentiService.AddStudent(Student); if (response != null) { NavigationManager.NavigateTo("/students"); } } catch (Exception) { // Display error // Log exception } }
protected async Task CreateStudent() { try { var response = await StudentiService.AddStudent(Student); if (response != null) { NavigationManager.NavigateTo("/students"); } } catch (Exception) { // Display error // Log exception } }