Esempio n. 1
0
        public static List <Alergia> GetAlergiasByIdPaciente(int IdPaciente)
        {
            DataTable      Result = new Conexiones.Con_AntecedentesAlergicos().Select_AlergiasPaciente(IdPaciente);
            List <Alergia> MyTemp;

            if (Result != null)
            {
                MyTemp = new List <Alergia>();
                for (int a = 0; a < Result.Rows.Count; a++)
                {
                    MyTemp.Add(new Alergia(Result.Rows[a]));
                }
                return(MyTemp);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
 public Boolean Guardar()
 {
     Conexiones.Con_AntecedentesAlergicos CAA = new Conexiones.Con_AntecedentesAlergicos();
     return(CAA.Insertar_Alergia(IdPaciente, NameAlergia));
 }