public void Delete(BorrowersItem borrowerItem)
 {
     var borrowersItem = Get(borrowerItem.Id);
     if (borrowersItem == null) return;
    _lendingLibraryDbContext.SetStateToDelete(borrowersItem);
     _lendingLibraryDbContext.SaveChanges();
 }
 public void Save(BorrowersItem borrowersItem)
 {
     _lendingLibraryDbContext.AttachEntity(borrowersItem);
     _lendingLibraryDbContext.SaveChanges();
 }