private Snapshot_Label CastToLabelSnapshot(Label label)
        {
            var snapshot = new Snapshot_Label();

            snapshot.CloneLabelId      = (int)label.label_id;
            snapshot.RecordLabelGroups = CastToLabelGroupSnapshot(label.recordLabelGroups, label);
            snapshot.Name = label.name;
            return(snapshot);
        }
 public Snapshot_Label SaveSnapshotLabel(Snapshot_Label snapshotLabel)
 {
     using (var context = new DataContext())
     {
         context.Snapshot_Labels.Add(snapshotLabel);
         context.SaveChanges();
         return(snapshotLabel);
     }
 }