Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult AddBookToRepository(string sessionID, int?userID, [FromBody] KsiazkaDto ksiazka) { if (sessionID == null || userID == null) { return(NullValues()); } var user = VerifyUserSessionID(sessionID, userID); if (user == null) { return(InvalidSessionID()); } var bookToReturn = bookDao.AddBookToDatabase(ksiazka, user); return(Ok(bookToReturn)); }