// // GET: /Investment/Stocks/ public HttpResponseMessage post(StocksRequest request) { StocksBusinessAccess fs = new StocksBusinessAccess(); List <StockPurchases> lsp = new List <StockPurchases>(); lsp = fs.ToGetStocks(request.FromDate, request.ToDate); return(Request.CreateResponse(HttpStatusCode.OK, lsp)); }
public HttpResponseMessage GetStocks(StocksRequest request) { List <StocksEntity> lsp = _StocksBusinessAccess.ToGetStocks(request.FromDate, request.ToDate, request.Detail); return(Request.CreateResponse(HttpStatusCode.OK, lsp)); }