Ive been reading some articles to introduce Optimistic Concurrency into my application, so if two users are editing a single record they are given options to either lose their changes and reload or save over the current changes so the current users changes is the final save.
Im making this amendment in the UoW class and have a
try catch block. Ive added RowVersion to my table and marked it with TimeStamp. During debug i can amend the record and the error occurs.
The issue im finding it how do i bubble up the message to the end user as the try catch block (from the articles i have read) only seems to target the code and not a way to get the user to decide? I want a message to be shown to the end user and let them decide what to do?