public string Actualizar(BLLDetallesProductos DP) { string mensaje = ""; DataSet dtsRet = DP.ConvierteEntidadDS(); bool blnIniObjCon = false; try { blnIniObjCon = InicializaObjConexion(); Detalles = new DAL.DALDetallesProductos(objDALBase, StrUsuarioSistema); mensaje = Detalles.Guardar("A", dtsRet); } catch (Exception er) { mensaje = "Error: " + er.Message; } return(mensaje); }
public DataSet ConsultarDetallesPorProducto(int Id) { bool blnIniObjCon = false; try { blnIniObjCon = InicializaObjConexion(); Detalles = new DAL.DALDetallesProductos(objDALBase, StrUsuarioSistema); DataSet dtsRet = Detalles.ConsultaPorProducto(Id); return(dtsRet); } catch (Exception err) { throw new Exception(err.Message, err.InnerException); } finally { if (blnIniObjCon) { objDALBase.CierraConexion(); } } }