public async Task <IActionResult> GetAll() { var authors = unitOfWork.Authors.GetAll(); var filteredBooks = await oDataService.FilterAndGetRESTfulResultAsync(authors, Request); return(Ok(filteredBooks)); }
public async Task <IActionResult> GetAllInAuthor(string authorId) { var authors = unitOfWork.Books.GetAllInAuthor(authorId); var filteredAuthors = await oDataService.FilterAndGetRESTfulResultAsync(authors, Request); return(Ok(filteredAuthors)); }
public async Task <IActionResult> GetAll(string readerId) { var books = unitOfWork.Books.GetAllInReader(readerId); var filteredBooks = await oDataService.FilterAndGetRESTfulResultAsync(books, Request); return(Ok(filteredBooks)); }
public async Task <IActionResult> GetAll() { var readers = unitOfWork.Readers.GetAll(); var filteredReaders = await oDataService.FilterAndGetRESTfulResultAsync(readers, Request); return(Ok(filteredReaders)); }