public DataTable GetMyFunds(GetMyFundsRequest request) { List <SqlParameter> parameters = new List <SqlParameter>(); parameters.Add(new SqlParameter() { DbType = DbType.String, ParameterName = "transaction", Value = request.Type }); parameters.Add(new SqlParameter() { DbType = DbType.Int32, ParameterName = "portfolioId", Value = request.PortfolioId }); DataSet ds = SQLHelper.ExecuteProcedure("PersonalFinance", "GetMyFunds", CommandType.StoredProcedure, parameters); if (ds != null) { return(ds.Tables[0]); } return(null); }
public List <MFFund> GetMyFunds(GetMyFundsRequest request) { return(MapMyFunds(datatable: _mutualFundsDataAccess.GetMyFunds(request))); }
public HttpResponseMessage GetMyFunds(GetMyFundsRequest request) { List <MFFund> result = _mutualFundsRepository.GetMyFunds(request); return(Request.CreateResponse(HttpStatusCode.OK, result)); }