public async Task <IActionResult> Index() { IEnumerable <BookViewModel> booksList; try { booksList = await _rentalsService.GetBooksCollection(); } catch (Exception e) { return(BadRequest(e.Message)); } return(Ok(booksList)); }