public GameBoardSchedule GameFlightSchedules(string pGameDate, string pGameDate1) { ///string pGameDate1 = pGameDate + " 23:59:59"; DataLib oDataLib = new DataLib(); GameBoardSchedule oGameFlightScheduleView = new GameBoardSchedule(); oGameFlightScheduleView.Tee1 = oDataLib.GetGameBoard(pGameDate, pGameDate1, 1); oGameFlightScheduleView.Tee2 = oDataLib.GetGameBoard(pGameDate, pGameDate1, 2); if (oGameFlightScheduleView == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound)); } return(oGameFlightScheduleView); }
public GameBoardSchedule GameFlightScheduleMatchComplete(string pGameDate, string pGameDate1) { bool IsMatchComplete = true; ///string pGameDate1 = pGameDate + " 23:59:59"; DataLib oDataLib = new DataLib(); GameBoardSchedule oGameFlightScheduleView = new GameBoardSchedule(); oGameFlightScheduleView.Tee1 = oDataLib.GetGameBoardStatus(pGameDate, pGameDate1, 1, false, false, IsMatchComplete); oGameFlightScheduleView.Tee2 = oDataLib.GetGameBoardStatus(pGameDate, pGameDate1, 2, false, false, IsMatchComplete); if (oGameFlightScheduleView == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound)); } return(oGameFlightScheduleView); }