/// <summary> /// OBTENER LA LISTA DE PORTAFOLIOS /// </summary> /// <param name="oBe"></param> /// <returns></returns> public List <BEGPP_Portafolio> GPP0004_GPP_Portafolio_LIST(BEGPP_Portafolio oBe) { try { using (var odr = oda.GPP0004_GPP_Portafolio_LIST(oBe)) { var oList = new List <BEGPP_Portafolio>(); var iLst = oList; ((IList)iLst).LoadFromReader <BEGPP_Portafolio>(odr); return(oList); } } catch (Exception ex) { throw new ArgumentException(ex.Message); } }
public HttpResponseMessage GPP0004_GPP_Portafolio_LIST() { try { var oBr = new BRGPP_Portafolio(); var oBe = new BEGPP_Portafolio(); oBe.acci = 1; var oList = oBr.GPP0004_GPP_Portafolio_LIST(oBe); return(Request.CreateResponse(HttpStatusCode.OK, oList)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message)); } }
/// <summary> /// OBTENER LS LISTA DE PORTAFOLIOS /// </summary> /// <param name="oBe"></param> /// <returns></returns> public IDataReader GPP0004_GPP_Portafolio_LIST(BEGPP_Portafolio oBe) { try { if (ocn.State == ConnectionState.Closed) { ocn.Open(); } var ocmd = odb.GetStoredProcCommand("GPP0004_GPP_Portafolio_LIST", oBe.NumPortafolio, oBe.acci); ocmd.CommandTimeout = 2000; var odr = odb.ExecuteReader(ocmd); return(odr); } catch (Exception ex) { throw new ArgumentException(ex.Message); } finally { ocn.Close(); } }