public int LoadSpecification(string material_id) { Specs.DefaultSpec = GetDefaultSpec(material_id); Console.WriteLine(Specs.DefaultSpec.ToString()); if (Specs.DefaultSpec == null) { return(-1); } List <SpecRecord> records = DataAccess.GetSpecRecords(material_id, "modified_specifications"); foreach (var record in records) { Specs.Add(Factory.CreateSpecFromRecord(record)); } return(0); }