In my project, users will be able to edit some sets of data as much as needed. However, due to the project specification, only one user can edit a certain data set/ access the data set's edit page at a time. So if user A is editing Data Set 1, user B must not be able to access the edit page of Data Set 1 so long as user A is at that page, and vice versa.
I did a bit of reading and Pessimistic Concurrency seems to be what I'm looking for, where a page gets "locked" out until the user inside that page leaves, which explains my title.
I am still fairly new to ASP.NET and web development in general. I would like to ask if I'm heading in the right direction to approach my problem, How could I implement it in my project (I only keep seeing samples for Optimistic Concurrency) and if there are other ways, which I have not encountered, To approach my problem.