Exemple #1
0
        public async void DeleteArea()
        {
            if (SelectedArea.Id == 0)
            {
                windowManager.ShowDialog(new ErrorViewModel(MyResources.SelectAreaMsg));
            }
            else
            {
                await managerService.DeleteSeatMapAsync(selectedArea.Id);

                await managerService.DeleteAreaAsync(selectedArea.Id);

                seatsByAreaId.Clear();
                AreasByLayoutId = managerService.GetAllAreasByLayoutId(selectedLayout.Id);
            }
        }