Exemplo n.º 1
0
    public void Login()
    {
        GameObject input = GameObject.Find("Input ID Text");
        string     id    = input.GetComponent <Text>().text;

        patient   = PatientDAO.ConsultPatient(id);
        therapist = TherapistDAO.ConsultTherapist("123");

        if (patient != null && therapist != null)
        {
            therapySession = new TherapySession(therapist.Id_num, patient.Id_num);
            bool insertion = TherapySessionDAO.InsertTherapySession(therapySession);
        }
    }