public static bool obtener_estado_habilitado_rol(int id_rol) { try { string funcion = "SELECT KFC.fun_obtener_habilitacion_rol(@id_rol)"; SqlParameter parametro = new SqlParameter("@id_rol", SqlDbType.Int); parametro.Value = id_rol; var parametros = new List <SqlParameter>(); parametros.Add(parametro); bool estado_habilitacion; var reader = InteraccionDB.ejecutar_funcion(funcion, parametros); estado_habilitacion = InteraccionDB.ObtenerBoolReader(reader, 0); return(estado_habilitacion); } catch (Exception e) { InteraccionDB.ImprimirExcepcion(e); throw new Exception("No pudo ver si el Rol esta Habilitado o No. Error: " + e.Message); } }