public async Task UpdateAndSave(Models.BooksRequests bookUser) { _bookReRepo.Update(bookUser); await _bookReRepo.Save(); }
public async Task AddAndSave(Models.BooksRequests bookUser) { _bookReRepo.Add(bookUser); await _bookReRepo.Save(); }
public void Delete(string Book_id, string User_id) { Models.BooksRequests bookUser = context.BooksRequests.Find(Book_id, User_id); context.BooksRequests.Remove(bookUser); }
public void Update(Models.BooksRequests bookUser) { context.Entry(bookUser).State = EntityState.Modified; }
public void Add(Models.BooksRequests bookUser) { context.BooksRequests.Add(bookUser); }