void UpdateRecordGrid()//Bieda update , czysci grida i od nowa laduje { var r = recordService.GetAllRecord(); record.Clear(); foreach (Record item in r) { record.Add(new RecordViewModel { ID = item.id, Type = item.type, Name = item.name }); //record.Add(item); } }