private GoalieShootoutStatisticDTO GoalieShootoutStatisticToDto(GoalieShootoutStatistic domain) { return(new GoalieShootoutStatisticDTO { Id = domain.Id, GameShootoutStatisticId = domain.GameShootoutStatisticId, TeamId = domain.TeamId, PlayerId = domain.PlayerId, ShotsAgainst = domain.ShotsAgainst, GoalsAllowed = domain.GoalsAllowed, WonShootout = domain.WonShootout, CreatedOnUtc = domain.CreatedOn }); }
public GoalieShootoutStatistic GoalieStatisticsToDomainModel(GoalieShootoutStatisticDataModel dataModel) { if (dataModel == null) { return(null); } var dto = new GoalieShootoutStatistic( dataModel.Id, dataModel.GameShootoutStatisticId, dataModel.TeamId, dataModel.PlayerId, dataModel.ShotsAgainst, dataModel.GoalsAllowed, dataModel.WonShootout, dataModel.CreatedOnUtc ); return(dto); }
private GoalieShootoutStatisticDataModel GoalieStatisticsToDataModel(GoalieShootoutStatistic domainModel) { if (domainModel == null) { return(null); } var dto = new GoalieShootoutStatisticDataModel { Id = domainModel.Id, TeamId = domainModel.TeamId, PlayerId = domainModel.PlayerId, GameShootoutStatisticId = domainModel.GameShootoutStatisticId, ShotsAgainst = domainModel.ShotsAgainst, GoalsAllowed = domainModel.GoalsAllowed, WonShootout = domainModel.WonShootout }; return(dto); }