Deleting a record from SQL Database in MVC
I’m working on an ASP.NET MVC application and I’m facing a challenge with deleting records. Here’s the specific scenario:
I have two database tables: AvailableDates and Bookings.
In the UI, users can view available dates.
When a user selects a date for deletion, the system should delete the corresponding record from Bookings table (including the selected date, submitted date, and username).