public void AddRating(Rating rating) { try { DbContext.Rating.Add(rating); DbContext.SaveChanges(); } catch (Exception) { } }
public void UpdateBook(Book book) { try { DbContext.Book.Update(book); DbContext.SaveChanges(); } catch (Exception) { } }
public bool AddLending(BookLending lending) { try { DbContext.BookLending.Add(lending); DbContext.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool CreateReservation(BookReservation reservation) { try { DbContext.BookReservation.Add(reservation); DbContext.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool CreateAccount(Account account) { try { DbContext.Account.Add(account); DbContext.SaveChanges(); return(true); } catch (Exception) { return(false); } }