예제 #1
0
        public TeamUserMapping MapRequestToModel(TeamUserMappingRequest teamUserMappingRequest)
        {
            if (teamUserMappingRequest == null)
            {
                return(null);
            }

            var teamUserMapping = new TeamUserMapping
            {
                Id     = teamUserMappingRequest.Id,
                UserId = teamUserMappingRequest.UserId,
                TeamId = teamUserMappingRequest.TeamId,
            };

            return(teamUserMapping);
        }
예제 #2
0
        public TeamUserMappingResponse MapModelToResponse(TeamUserMapping teamUserMapping)
        {
            if (teamUserMapping == null)
            {
                return(null);
            }

            var teamUserMappingResponse = new TeamUserMappingResponse
            {
                Id     = teamUserMapping.Id,
                UserId = teamUserMapping.UserId,
                TeamId = teamUserMapping.TeamId,
            };

            return(teamUserMappingResponse);
        }