public void AddElements(Flow flow, FullFlowModel model) { NH.NHibernateOperation operation = new NH.NHibernateOperation(); for (int i = 0; i < model.list.Count; i++) { Attributes a = operation.FindAttributeByName(model.list[i].name); createExtension(flow, a, model.list[i].value); } for (int i = 0; i < model.list_int.Count; i++) { Attributes a = operation.FindAttributeByName(model.list_int[i].name); createExtension(flow, a, model.list_int[i].value.ToString()); } }