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)); }
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)); }
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)); }