public IActionResult GetAllUserBooks(string sessionID, int?userID) { if (sessionID == null || userID == null) { return(NullValues()); } var user = VerifyUserSessionID(sessionID, userID); if (user == null) { return(InvalidSessionID()); } var listToReturn = bookDao.GetAllBooksForUser(user); return(Ok(listToReturn)); }
public void GetAllBooksForUserTest() { var user = userDao.GetDefaultUser(); var books = bookDao.GetAllBooksForUser(user); }