コード例 #1
0
 public void MapFromDtoToTeam(TeamDto dto, Team team)
 {
     team.Name = dto.Name;
 }
コード例 #2
0
        public TeamDto FromTeamToDto(Team team)
        {
            TeamDto dto = SetTeamToDto(team);

            return(dto);
        }
コード例 #3
0
        /// <summary>
        /// MapFromTeamTpDto new team based on dto
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public Team CreateNewTeam(TeamBindingModel dto)
        {
            Team team = new Team(dto.Name);

            return(team);
        }