/// <summary> /// allows to generate a list of all terminals registered in the system /// </summary> /// <returns>list of all terminals registered in the system </returns> public List <Terminal> cargarTerminales() { TerminalesDAL c = new TerminalesDAL(); List <Terminal> m = c.cargarTerminales(); return(m); }
/// <summary> /// Allows to register a new Terminal /// </summary> /// <param name="t">Object type Terminal which will be registered</param> public void registrarTerminal(Terminal t) { validarTerminal(t); TerminalesDAL c = new TerminalesDAL(); c.registrarTerminal(t); }
public DataTable sp_updt_terminalesBLL(TerminalesBO terminal) { DataTable dt = new DataTable(); try { dt = new TerminalesDAL().sp_updt_terminalesDAL(terminal); } catch (Exception ex) { throw ex; } return(dt); }
public DataTable sp_sel_terminalIDBLL(int age_cod) { DataTable dt = new DataTable(); try { dt = new TerminalesDAL().sp_sel_terminalIDDAL(age_cod); } catch (Exception ex) { throw ex; } return(dt); }
/// <summary> /// Allows to edit a specific terminal /// </summary> /// <param name="actual">code of the terminal</param> /// <param name="u">terminal with the edited information</param> public void editarTerminales(string actual, Terminal u) { TerminalesDAL c = new TerminalesDAL(); c.editarTerminal(actual, u); }
/// <summary> /// Allows to eliminate a especific Terminal /// </summary> /// <param name="nombre">Code of the terminal</param> public void eliminarTerminal(string nombre) { TerminalesDAL c = new TerminalesDAL(); c.eliminarTerminal(nombre); }