Linq with if Condition and Datatable Update

e.g
grafik

for further studies also have a look here: