protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Employee args)
        {
            try
            {
                var northwindCreateEmployeeResult = await Northwind.CreateEmployee(employee);

                DialogService.Close(employee);
            }
            catch (Exception northwindCreateEmployeeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Employee!");
            }
        }
        protected async void Form0Submit(Employee args)
        {
            var northwindCreateEmployeeResult = await Northwind.CreateEmployee(employee);

            DialogService.Close(employee);
        }
Esempio n. 3
0
        protected async void Form0Submit(Employee args)
        {
            var northwindCreateEmployeeResult = await Northwind.CreateEmployee(employee);

            UriHelper.NavigateTo("Employees");
        }