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

            StateHasChanged();
        }
예제 #2
0
        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();
        }