public async Task <IActionResult> Get(string userId) { bool isUserExists = await userService.IsUserExists(userId); IEnumerable <BookDto> bookList = new List <BookDto>(); if (isUserExists) { var wishListId = await wishListService.GetWishListId(userId); bookList = await bookService.GetBooksInWishList(wishListId); return(Ok(bookList)); } else { return(Ok(bookList)); } }