Пример #1
0
        private static Domain.LapStatistic Convert(LapStatistic lapStatistic)
        {
            var result = new Domain.LapStatistic(
                new Guid(lapStatistic.RaceId),
                new Guid(lapStatistic.TeamId),
                lapStatistic.TeamName,
                lapStatistic.DistanceInMeters,
                lapStatistic.Length,
                lapStatistic.CompletedOn);

            return(result);
        }
Пример #2
0
        private static LapStatistic Convert(Domain.LapStatistic lapStatistic)
        {
            var result = new LapStatistic
            {
                CompletedOn      = lapStatistic.CompletedOn,
                DistanceInMeters = lapStatistic.DistanceInMeters,
                Length           = lapStatistic.Length,
                Pace             = lapStatistic.Pace,
                RaceId           = lapStatistic.RaceId.ToString(),
                TeamId           = lapStatistic.TeamId.ToString(),
                TeamName         = lapStatistic.TeamName
            };

            return(result);
        }