internal ResultadoInfo <PrecioProductoInfo> ObtenerPorPagina(PaginacionInfo pagina, PrecioProductoInfo filtros) { try { Dictionary <string, object> parameters = AuxPrecioProductoDAL.ObtenerParametrosPorPagina(pagina, filtros); DataSet ds = Retrieve("[dbo].[PrecioProducto_ObtenerPorPagina]", parameters); ResultadoInfo <PrecioProductoInfo> result = null; if (ValidateDataSet(ds)) { result = MapPrecioProductoDAL.ObtenerPorPagina(ds); } return(result); } catch (SqlException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (DataException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (Exception ex) { Logger.Error(ex); throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex); } }
internal void Guardar(PrecioProductoInfo info) { try { Dictionary <string, object> parameters = AuxPrecioProductoDAL.ObtenerParametrosGuardar(info); Create("[dbo].[PrecioProducto_Guardar]", parameters); } catch (SqlException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (DataException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (Exception ex) { Logger.Error(ex); throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex); } }