Example #1
0
        public async void DeleteVenue()
        {
            if (selectedVenue.Id != 0)
            {
                await managerService.DeleteVenueAsync(selectedVenue.Id);

                await managerService.GetAllVenuesAsync();

                LayoutsByVenueId = null;
                SeatsByAreaId    = null;
                AreasByLayoutId  = null;
            }
            else
            {
                windowManager.ShowDialog(new ErrorViewModel(MyResources.SelectVenueMsg));
            }
        }