Exemplo n.º 1
0
 public async Task DeleteStore(int id)
 {
     if (await JS.InvokeAsync <bool>("confirm", "Are you sure you want to mark this store as deleted?"))
     {
         if (await JS.InvokeAsync <bool>("exampleJsFunctions.deleteStoreDisplayNumber", AllStores.Where(x => x.Id == id).FirstOrDefault().StoreNumber))
         {
             await StoreInformationDataService.MarkAsDeleted(id);
         }
     }
     //StateHasChanged();
     NavigationManager.NavigateTo($"/storeinformation", forceLoad: true);
 }