[DataContract(), XmlRoot()]
[KnownType(typeof(Group))]
[KnownType(typeof(Role))]
public class Department
{
private List<Group> _Groups;
private List<Role> _Role;
public string Name { get; set; }
[DataMember()]
public List<Group> Groups
{
get
{
if (_Groups == null)
{
_Groups = new List<Group>();
}
return _Groups;
}
set
{
_Groups = value;
}
}
[DataMember]
public List<Role> Role
{
get
{
if (_Role == null)
{
_Role = new List<Role>();
}
return _Role;
}
set
{
_Role = value;
}
}
}
[DataContract()]
public class Role
{
public Role(string Name)
{
Title = Name;
}
[DataMember()]
public string Title { get; set; }
}
[DataContract()]
public class Group
{
public Group (string GroupName)
{
Name = GroupName;
}
public Group (string GroupName, string GroupDisplayName)
{
Name = GroupName;
DisplayName = GroupDisplayName;
}
[DataMember()]
public string Name { get; set; }
[DataMember()]
public string DisplayName { get; set; }
}
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.