//Borrow method
 private void Borrow()
 {
     if (mediaLogic.GetBorrowedByMediaId(selectedMedia.MediaId) == null || selectedBorrowed == null)                                                   //If it is null it means no one has borrowed it yet
     {
         int affectedRows = mediaLogic.AddNewBorrowedMedia(CurrentUser.UserId, selectedMedia.MediaId, DateTime.Now, DateTime.Now.AddDays(borrowDays)); // 7 days is the maximum a user can have a media without paying late fees.
         MessageBox.Show(selectedMedia.MediaName + " successfully borrowed!");
         DeleteReserve();
         availabilityLabel.Text = "Media Availability: Borrowed";
     }
     else if (selectedBorrowed.UserdId == CurrentUser.UserId)
     {
         MessageBox.Show("You have already borrowed this media!");
     }
     else
     {
         MessageBox.Show("Sorry, media already borrowed by another user!");
     }
 }