Esempio n. 1
0
 //TURNOS
 public static void guardarTurno(Turno pTurno, string pOperacion)
 {
     DataAccessLayerTurnos oDAL = new SQLTurno();
     if (pOperacion == "Insert")
     {
         oDAL.Insert(pTurno);
     }
     else if (pOperacion == "Update")
     {
         oDAL.Update(pTurno);
     }
     else
     {
         throw new Exception();
     }
 }
Esempio n. 2
0
 public static List<Turno> traerTurnos(int pId)
 {
     DataAccessLayerTurnos oDAL = new SQLTurno();
     return oDAL.GetAll(pId);
 }
Esempio n. 3
0
 public static void eliminarTurno(int pId)
 {
     DataAccessLayerTurnos oDAL = new SQLTurno();
     try
     {
         oDAL.Delete(pId);
     }
     catch (SqlException)
     {
         throw new ConsultaVinculadaConExpediente();
     }
 }