since I think you could look at the Post / redirect / Pattern PRG template from Wikipedia
An HTTP 303 response code was introduced in the HTTP 1.1 specification to ensure that in this situation the web browser browser can safely update the server response without triggering the initial HTTP POST request for resending.
It simply consists of redirecting after a successful publication, so updating the user results in an idempotent GET, not a POST. It has the added benefit that the browser forgets about POST in its history, which means that the back button will not be sent either.
even you can check before sending data with your database, regardless of whether the data exists or not based on the primary key or unique identifier.
but you check this PRG template, it may help you.
Redirecting responses. in asp.net
source share