コード例 #1
0
        public async Task <ActionResult> GetOwnedStocksTable(DataTableMessage <TransactionFilter> dataTableMessage)
        {
            var searchMessage = DataTableMessageConverter.ToPagedFilterDefinition(dataTableMessage);
            var pagedList     = await _walletService.GetOwnedStocks(CurrentUserId, searchMessage);

            var model = GetSimpleDataTableResponse(dataTableMessage, pagedList);

            return(new JsonNetResult(model, false));
        }
コード例 #2
0
        public async Task <ActionResult> GetAdvancersTable(DataTableMessage <TransactionFilter> dataTableMessage)
        {
            var searchMessage = DataTableMessageConverter.ToPagedFilterDefinition(dataTableMessage);
            var pagedList     = await _priceService.GetAdvancers(searchMessage);

            var model = GetSimpleDataTableResponse(dataTableMessage, pagedList);

            return(new JsonNetResult(model, false));
        }
コード例 #3
0
        public async Task <ActionResult> GetPrices(DataTableMessage <PriceFilter> dataTableMessage)
        {
            var searchMessage = DataTableMessageConverter.ToPagedFilterDefinition(dataTableMessage);
            var pagedList     = await _priceService.GetPrices(searchMessage);

            var model = BuildDataTableResponse(dataTableMessage, pagedList);

            return(new JsonNetResult(model, false));
        }