BLL.Semestres.Insertar C# (CSharp) Method

Insertar() public method

public Insertar ( ) : bool
return bool
        public bool Insertar() {
            bool paso = conexion.EjecutarDB("insert into Semestres(Codigo, FechaInicio, FechaFin, FechaParcial1, FechaParcial2, FechaFinal, Activo) values(" + Codigo.ToDbString() + "," + FechaInicio.ToDbString() + "," + FechaFin.ToDbString() + "," + FechaParcial1.ToDbString() + "," + FechaParcial2.ToDbString() + "," + FechaFinal.ToDbString() + "," + Activo.ToDbString() + ")");
            if (paso)
                this.IdSemestre = (int)conexion.ObtenerValorDb("select MAX(IdSemestre) from Semestres");
            return paso;
        }