public GroupJoin <T> Map <T>(Lib.Models.Group g) { if (g == null) { return(null); } return(new GroupJoin <T>() { GroupId = (g?.Id != null) ? (int)g?.Id : 0, Group = (g?.Id == 0) ? Map(g) : null }); }
public Models.Group Map(Lib.Models.Group g) { if (g == null) { return(null); } return(new Models.Group() { Id = g.Id, Name = g.Name, MemberOf = Map <Models.Group>(g.MemberOf) }); }