foreach (var Item in LineVariationList)
{
var CurrentMeasureVariation = context.MeasureVariations.FirstOrDefault(item => item.Id == Item.Id);
CurrentMeasureVariation.IsCalc = Item.IsCalc;
context.Entry(CurrentMeasureVariation).State = EntityState.Modified;
context.SaveChanges();
}