Exemple #1
0
        public static WTeamGroup[] ConvertTeamGroup(TeamGroup[] DbTeamGroups)
        {
            WTeamGroup[] WTeamGroups = new WTeamGroup[DbTeamGroups.Length];

            for (int i = 0; i < DbTeamGroups.Length; i++)
            {
                WTeamGroups[i] = ConvertTeamGroup(DbTeamGroups[i]);
            }

            return(WTeamGroups);
        }
Exemple #2
0
        public static WTeamGroupCompilation ConvertTeamProjectCompilation(TeamGroup[] DbTeamGroup, TeamProject[] DbTeamProject)
        {
            var TeamGroups = new WTeamGroup[DbTeamGroup.Length];

            for (int i = 0; i < DbTeamGroup.Length; i++)
            {
                TeamGroups[i] = ConvertTeamGroup(DbTeamGroup[i]);
            }

            var TeamProjects = new WTeamProject[DbTeamProject.Length];

            for (int i = 0; i < DbTeamProject.Length; i++)
            {
                TeamProjects[i] = ConvertTeamProject(DbTeamProject[i]);
            }

            return(new WTeamGroupCompilation
            {
                WTeamGroups = TeamGroups,
                WTeamProjects = TeamProjects
            });
        }
Exemple #3
0
 public static TeamGroup ConvertTeamGroup(DatabaseContext db, WTeamGroup WpfTeamGroup)
 {
     return(db.TeamGroups.Where(t => t.Id == WpfTeamGroup.Id).FirstOrDefault());
 }