public async Task UpdateRowHandler(IUpdateRow updated) { if (updated.ProductId == RowModel.ProductId) { if (updated is UpdateRowPrice) { var updatedprice = updated as UpdateRowPrice; RowModel.Update(updatedprice); await AnimerPris(updatedprice.OldPrice, updatedprice.NewPrice); } else if (updated is UpdateRowName) { var updateRow = updated as UpdateRowName; RowModel.Name = updateRow.NewName; StateHasChanged(); } } }