예제 #1
0
 public async Task UpdateAndSave(Models.BooksRequests bookUser)
 {
     _bookReRepo.Update(bookUser);
     await _bookReRepo.Save();
 }
예제 #2
0
 public async Task AddAndSave(Models.BooksRequests bookUser)
 {
     _bookReRepo.Add(bookUser);
     await _bookReRepo.Save();
 }
예제 #3
0
 public void Delete(string Book_id, string User_id)
 {
     Models.BooksRequests bookUser = context.BooksRequests.Find(Book_id, User_id);
     context.BooksRequests.Remove(bookUser);
 }
예제 #4
0
 public void Update(Models.BooksRequests bookUser)
 {
     context.Entry(bookUser).State = EntityState.Modified;
 }
예제 #5
0
 public void Add(Models.BooksRequests bookUser)
 {
     context.BooksRequests.Add(bookUser);
 }