public JsonPatchDocument <ApiTeamRequestModel> CreatePatch(ApiTeamRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiTeamRequestModel>();

            patch.Replace(x => x.EnvironmentIds, model.EnvironmentIds);
            patch.Replace(x => x.JSON, model.JSON);
            patch.Replace(x => x.MemberUserIds, model.MemberUserIds);
            patch.Replace(x => x.Name, model.Name);
            patch.Replace(x => x.ProjectGroupIds, model.ProjectGroupIds);
            patch.Replace(x => x.ProjectIds, model.ProjectIds);
            patch.Replace(x => x.TenantIds, model.TenantIds);
            patch.Replace(x => x.TenantTags, model.TenantTags);
            return(patch);
        }
        public virtual ApiTeamRequestModel MapResponseToRequest(
            ApiTeamResponseModel response)
        {
            var request = new ApiTeamRequestModel();

            request.SetProperties(
                response.EnvironmentIds,
                response.JSON,
                response.MemberUserIds,
                response.Name,
                response.ProjectGroupIds,
                response.ProjectIds,
                response.TenantIds,
                response.TenantTags);
            return(request);
        }
        public virtual ApiTeamResponseModel MapRequestToResponse(
            string id,
            ApiTeamRequestModel request)
        {
            var response = new ApiTeamResponseModel();

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