public void Fill(Models.MetadataCodes metadataCode) { Code = metadataCode.Code; Name = metadataCode.Name; Uuid = metadataCode.Uuid; int positionDot = Name.IndexOf('.'); if (positionDot > 0) { Parent = Name.Substring(0, positionDot); Child = Name.Substring(positionDot + 1, Name.Length - positionDot - 1); } }
public FilterMetadataCodes(Models.MetadataCodes metadataCode) { Fill(metadataCode); }