/// <summary>
 /// Finds game result by identifier criteria.
 /// </summary>
 /// <param name="criteria">Identifier criteria.</param>
 /// <returns>Domain model of game result.</returns>
 public GameResultDto Execute(FindByIdCriteria criteria)
 {
     return(_dalGameResults
            .Where(gr => gr.Id == criteria.Id)
            .ToList()
            .Select(gr => GetGameResultDtoMap()(gr))
            .SingleOrDefault());
 }
        private GameResultDto Map(GameResultEntity gr, string divisionName, int divisionId, int groupId)
        {
            var result = GetGameResultDtoMap()(gr);

            result.DivisionName = divisionName;
            result.DivisionId   = divisionId;
            result.GroupId      = groupId;
            return(result);
        }