public bool Agregar() { try { Halcones.DALC.LICENCIA licencia = new DALC.LICENCIA(); licencia.ID_LICENCIA = this._idLicencia; licencia.LICENCIA1 = this._licencia; licencia.ESTADO = this._estado; CommonBC.ModeloEscuelaHalcones.LICENCIA.Add(licencia); CommonBC.ModeloEscuelaHalcones.SaveChanges(); return(true); } catch (Exception ex) { CredencialesAutenticacion.GenerarLog("ERROR", ex.ToString()); return(false); } }
/// <summary> /// Metodo que registra un Tipo de Licencia. /// </summary> /// <returns>Retorna true si se registro el tipo de licencia y false de caso contrario</returns> public bool Agregar() { try { Halcones.DALC.LICENCIA licencia = new DALC.LICENCIA(); licencia.ID_LICENCIA = this._idLicencia; licencia.LICENCIA1 = this._licencia; licencia.DIAS_RENOVACION = this._diasRenovacion; licencia.ESTADO = this._estado; CommonBC.ModeloEscuelaHalcones.LICENCIA.Add(licencia); CommonBC.ModeloEscuelaHalcones.SaveChanges(); return(true); } catch (Exception ex) { ConfigHalcones.GenerarLog("ERROR", ex.ToString()); return(false); } }
/// <summary> /// Metodo que registra un Componente. /// </summary> /// <returns>Retorna true si se registro el usuario y false de caso contrario</returns> public bool Agregar() { try { Halcones.DALC.COMPONENTE componente = new DALC.COMPONENTE(); Halcones.DALC.LICENCIA licencia = new DALC.LICENCIA(); componente.ID_COMPONENTE = this._idComponente; componente.COMPONENTE1 = this._componente; componente.FABRICANTE = this._fabricante; componente.ESTADO = this._estado; CommonBC.ModeloEscuelaHalcones.COMPONENTE.Add(componente); CommonBC.ModeloEscuelaHalcones.SaveChanges(); return(true); } catch (Exception ex) { ConfigHalcones.GenerarLog("ERROR", ex.ToString()); return(false); } }