Exemplo n.º 1
0
        public virtual ApiTeamResponseModel MapBOToModel(
            BOTeam boTeam)
        {
            var model = new ApiTeamResponseModel();

            model.SetProperties(boTeam.Id, boTeam.EnvironmentIds, boTeam.JSON, boTeam.MemberUserIds, boTeam.Name, boTeam.ProjectGroupIds, boTeam.ProjectIds, boTeam.TenantIds, boTeam.TenantTags);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOTeam MapEFToBO(
            Team ef)
        {
            var bo = new BOTeam();

            bo.SetProperties(
                ef.Id,
                ef.EnvironmentIds,
                ef.JSON,
                ef.MemberUserIds,
                ef.Name,
                ef.ProjectGroupIds,
                ef.ProjectIds,
                ef.TenantIds,
                ef.TenantTags);
            return(bo);
        }
Exemplo n.º 3
0
        public virtual Team MapBOToEF(
            BOTeam bo)
        {
            Team efTeam = new Team();

            efTeam.SetProperties(
                bo.EnvironmentIds,
                bo.Id,
                bo.JSON,
                bo.MemberUserIds,
                bo.Name,
                bo.ProjectGroupIds,
                bo.ProjectIds,
                bo.TenantIds,
                bo.TenantTags);
            return(efTeam);
        }
Exemplo n.º 4
0
        public virtual BOTeam MapModelToBO(
            string id,
            ApiTeamRequestModel model
            )
        {
            BOTeam boTeam = new BOTeam();

            boTeam.SetProperties(
                id,
                model.EnvironmentIds,
                model.JSON,
                model.MemberUserIds,
                model.Name,
                model.ProjectGroupIds,
                model.ProjectIds,
                model.TenantIds,
                model.TenantTags);
            return(boTeam);
        }