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); }
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); }