public ServiceResult GetAccountTransactions() { if (CurrentUser == null) { return(ServiceResponse.Error("You must be logged in to access this function.")); } FinanceAccountTransactionsManager financeManager = new FinanceAccountTransactionsManager(Globals.DBConnectionKey, this.GetAuthToken(Request)); List <dynamic> FinanceAccountTransaction = (List <dynamic>)financeManager.GetFinanceAccountTransactions(CurrentUser.AccountUUID, false).Cast <dynamic>().ToList(); DataFilter filter = this.GetFilter(Request); FinanceAccountTransaction = FinanceAccountTransaction.Filter(ref filter); return(ServiceResponse.OK("", FinanceAccountTransaction, filter.TotalRecordCount)); }
public ServiceResult GetAccountTransactions(string filter = "") { if (CurrentUser == null) { return(ServiceResponse.Error("You must be logged in to access this function.")); } FinanceAccountTransactionsManager financeManager = new FinanceAccountTransactionsManager(Globals.DBConnectionKey, Request.Headers?.Authorization?.Parameter); List <FinanceAccountTransaction> cs = financeManager.GetAll(); List <dynamic> FinanceAccountTransaction = (List <dynamic>)financeManager.GetFinanceAccountTransactions(CurrentUser.AccountUUID, false).Cast <dynamic>().ToList(); int count; DataFilter tmpFilter = this.GetFilter(filter); FinanceAccountTransaction = FilterEx.FilterInput(FinanceAccountTransaction, tmpFilter, out count); return(ServiceResponse.OK("", FinanceAccountTransaction, count)); }