private TeamViewModel Convert(TeamPartRecord record) { return(new TeamViewModel { TeamId = record.Id, BusinessUnitId = record.BusinessUnitPartRecord.Id, Name = record.Name, Description = record.Description }); }
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); }