public List<DAL.Entidades.StreamComunicados> List(string sessionid, DateTime timerequest) { StreamComunicadosPL pl = null; try { pl = new StreamComunicadosPL(); return pl.SP_CONSULTAR_COMUNICADOS(sessionid, timerequest); } catch (Exception ex) { throw ex; } finally { if(pl != null) pl.Dispose(); } }
public int Insert() { StreamComunicadosPL pl = null; try { pl = new StreamComunicadosPL(); return pl.SP_SALVAR_COMUNICADO(this.Instancia); } catch (Exception ex) { throw ex; } finally { if (pl != null) pl.Dispose(); } }