예제 #1
0
        private static object convertTeamToModel(object src)
        {
            p1p.Types.DTO.TeamDTO dto = (p1p.Types.DTO.TeamDTO)src;
            p1p.Data.Team         mdl = new Data.Team();

            mdl.Id         = dto.Id;
            mdl.Name       = dto.Name;
            mdl.InsertDate = dto.InsertDate;

            return(mdl);
        }
예제 #2
0
        private static object convertTeamToDTO(object src)
        {
            p1p.Data.Team         mdl = (p1p.Data.Team)src;
            p1p.Types.DTO.TeamDTO dto = new p1p.Types.DTO.TeamDTO();

            dto.Id         = mdl.Id;
            dto.Name       = mdl.Name;
            dto.InsertDate = mdl.InsertDate;

            return(dto);
        }