예제 #1
0
        //
        // 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));
        }
예제 #2
0
        public HttpResponseMessage GetStocks(StocksRequest request)
        {
            List <StocksEntity> lsp = _StocksBusinessAccess.ToGetStocks(request.FromDate, request.ToDate, request.Detail);

            return(Request.CreateResponse(HttpStatusCode.OK, lsp));
        }