private async Task Delete(int id)
        {
            var manufacturer = Manufacturers.FirstOrDefault(p => p.Id.Equals(id));

            var confirmed = await Js.InvokeAsync <bool>("confirm", $"Delete: {manufacturer.Name}?");

            if (confirmed)
            {
                await OnDeleted.InvokeAsync(id);
            }
        }
Beispiel #2
0
        ManufacturerIndexEntry FindManufacturer(string reference)
        {
            var manufacturer = Manufacturers.FirstOrDefault(x => x.reference == reference);

            return(manufacturer);
        }