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
     });
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }