public int abcGrupos(string pAccion, E_Grupos objE_Grupos) { int Resultado = 0; SqlCommand cmd = new SqlCommand("abcGrupos", Conexion); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@Accion", pAccion); cmd.Parameters.AddWithValue("@IdGrupo", objE_Grupos.IdGrupo); cmd.Parameters.AddWithValue("@NombreGrupo", objE_Grupos.NombreGrupo); cmd.Parameters.AddWithValue("@ClaveGrupo", objE_Grupos.ClaveGrupo); cmd.Parameters.AddWithValue("@IdEstudiante", objE_Grupos.IdEstudiante); cmd.Parameters.AddWithValue("@IdCurso", objE_Grupos.IdCurso); cmd.Parameters.AddWithValue("@IdAula", objE_Grupos.IdAula); try { AbrirConexion(); Resultado = cmd.ExecuteNonQuery(); } catch (Exception e) { throw new Exception("Error al procesar datos", e); } finally { CerrarConexion(); cmd.Dispose(); } return(Resultado); }
//-------------------------------------------------------------------------------------- public int abcGrupo(string pAccion, E_Grupos objE_Grupos) { return(objNegocioGrupos.abcGrupos(pAccion, objE_Grupos)); }