Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetAll(int page, int itemsPerPage, string search, string sortBy, bool reverse, Int64 codeID = 0, Int64 fiscalYearId = 0, int transactionTypeId = 0)
        {
            IEnumerable <TransactionFull> trans = null;

            trans = await _repo.GetAllTransaction(page, itemsPerPage, search, sortBy, reverse, codeID, fiscalYearId, transactionTypeId);

            if (trans.Count() == 0)
            {
                return(NotFound());
            }
            return(Ok(trans));
        }