public async Task <IActionResult> GetMemberHandicapList(Guid golfClubId,
                                                                CancellationToken cancellationToken)
        {
            GetMembersHandicapListReportResponsev1 managerResponse = await this.ReportingManager.GetMembersHandicapListReport(golfClubId, cancellationToken);

            GetMembersHandicapListReportResponsev2 response = this.ConvertGetMembersHandicapListReportResponse(managerResponse);

            return(this.Ok(response));
        }
        /// <summary>
        /// Converts the get members handicap list report response.
        /// </summary>
        /// <param name="managerResponse">The manager response.</param>
        /// <returns></returns>
        private GetMembersHandicapListReportResponsev2 ConvertGetMembersHandicapListReportResponse(GetMembersHandicapListReportResponsev1 managerResponse)
        {
            GetMembersHandicapListReportResponsev2 response = new GetMembersHandicapListReportResponsev2();

            response.GolfClubId = managerResponse.GolfClubId;
            response.MembersHandicapListReportResponse = new List <MembersHandicapListReportResponse>();

            foreach (DataTransferObjects.Responses.MembersHandicapListReportResponse membersHandicapListReportResponse in managerResponse
                     .MembersHandicapListReportResponse)
            {
                response.MembersHandicapListReportResponse.Add(new MembersHandicapListReportResponse
                {
                    GolfClubId       = membersHandicapListReportResponse.GolfClubId,
                    PlayerId         = membersHandicapListReportResponse.PlayerId,
                    PlayingHandicap  = membersHandicapListReportResponse.PlayingHandicap,
                    ExactHandicap    = membersHandicapListReportResponse.ExactHandicap,
                    HandicapCategory = membersHandicapListReportResponse.HandicapCategory,
                    PlayerName       = membersHandicapListReportResponse.PlayerName
                });
            }

            return(response);
        }