Example #1
0
        protected async Task CreateStudent()
        {
            try
            {
                var response = await StudentiService.AddStudent(Student);

                if (response != null)
                {
                    NavigationManager.NavigateTo("/students");
                }
            }
            catch (Exception)
            {
                // Display error
                // Log exception
            }
        }