public async Task <IActionResult> GetAll()
        {
            var authors = unitOfWork.Authors.GetAll();

            var filteredBooks = await oDataService.FilterAndGetRESTfulResultAsync(authors, Request);

            return(Ok(filteredBooks));
        }
Example #2
0
        public async Task <IActionResult> GetAllInAuthor(string authorId)
        {
            var authors = unitOfWork.Books.GetAllInAuthor(authorId);

            var filteredAuthors = await oDataService.FilterAndGetRESTfulResultAsync(authors, Request);

            return(Ok(filteredAuthors));
        }
Example #3
0
        public async Task <IActionResult> GetAll(string readerId)
        {
            var books = unitOfWork.Books.GetAllInReader(readerId);

            var filteredBooks = await oDataService.FilterAndGetRESTfulResultAsync(books, Request);

            return(Ok(filteredBooks));
        }
Example #4
0
        public async Task <IActionResult> GetAll()
        {
            var readers = unitOfWork.Readers.GetAll();

            var filteredReaders = await oDataService.FilterAndGetRESTfulResultAsync(readers, Request);

            return(Ok(filteredReaders));
        }