public async Task DeleteRoute()
        {
            ShowDialog = false;
            await CloseEventCallBack.InvokeAsync(null);

            StateHasChanged();
        }
コード例 #2
0
ファイル: AddEmployeeDialog.cs プロジェクト: Amit1150/Blazor
        protected async Task HandleValidSubmit()
        {
            await EmployeeDataService.AddEmployee(Employee);

            ShowDialog = false;
            await CloseEventCallBack.InvokeAsync(true);

            StateHasChanged();
        }
コード例 #3
0
        protected async Task HandleValidSubmit()
        {
            await UserDataService.AddUserAsync(User);

            await CloseEventCallBack.InvokeAsync(true);//we can send even the save employee here

            ShowDialog = false;

            StateHasChanged();
        }
コード例 #4
0
        protected async Task HandleValidSubmit()
        {
            await ReviewDataService.AddReviewAsync(Review.CastToDTO());

            await CloseEventCallBack.InvokeAsync(true);//we can send even the save employee here

            ShowDialog = false;

            StateHasChanged();
        }
コード例 #5
0
        protected async Task HandleValidSubmit()
        {
            this.City.Location = Location;

            Map_AddCity map_AddCity = new Map_AddCity();

            if (this.City.NeedsMuseum)
            {
                map_AddCity.MuseumSearches = (await GoogleDataService.TextSearch(MuseumType + "Museum", this.City.Location)).results;
            }
            if (this.City.NeedsRestaurant)
            {
                map_AddCity.RestaurantSearches = (await GoogleDataService.TextSearch(RestaurantType + "Restaurant", this.City.Location)).results;
            }

            map_AddCity.City = this.City;

            await CloseEventCallBack.InvokeAsync(map_AddCity);//we can send even the save employee here

            ShowDialog = false;
            _autocompleteInitialized = false;
            StateHasChanged();
        }