public Sample(SamplePageAttribute attribute, Type viewType) { Category = attribute.Category; Title = attribute.Title; Description = attribute.Description; Source = attribute.Source; SortOrder = attribute.SortOrder; ViewType = viewType; }
public Sample(SamplePageAttribute attribute, Type viewType) { Category = attribute.Category; Title = attribute.Title; Description = attribute.Description; DocumentationLink = attribute.DocumentationLink; Data = CreateData(attribute.DataType); Source = attribute.Source; SortOrder = attribute.SortOrder; ViewType = viewType; }