示例#1
0
 private TeamViewModel Convert(TeamPartRecord record)
 {
     return(new TeamViewModel
     {
         TeamId = record.Id,
         BusinessUnitId = record.BusinessUnitPartRecord.Id,
         Name = record.Name,
         Description = record.Description
     });
 }
示例#2
0
        private TeamViewModel Convert(TeamPartRecord teamRecord)
        {
            TeamViewModel teamViewModel = new TeamViewModel
            {
                TeamId         = teamRecord.Id,
                BusinessUnitId = teamRecord.BusinessUnitPartRecord != null ? (int?)teamRecord.BusinessUnitPartRecord.Id : null,
                Name           = teamRecord.Name,
                Description    = teamRecord.Description
            };

            return(teamViewModel);
        }