public void saveLastGameSession() { if (therapyId == "") { therapyId = TherapySessionDAO.GetLastTherapyId(patient.Id_num).ToString(); } GameSessionDAO.InsertGameSession(gameSessionList [gameSessionList.Count - 1], therapyId); currentGameSessionId = GameSessionDAO.GetLastGameSessionId(therapyId); }
public void SaveObservations(string observations) { therapySession.Description = observations; if (therapyId == "") { therapyId = TherapySessionDAO.GetLastTherapyId(patient.Id_num).ToString(); } if (TherapySessionDAO.insertObservations(therapyId, therapySession.Description)) { Debug.Log("Observations successfully saved"); } else { Debug.Log("Observations not saved"); } }