I use Mvc 4 with razor. I have a View that in back end creates a database entry in Action method. Problem is when i refresh the page (Press F5) the back end method calls again and create duplicate of the database entry. How to stop this?
public ActionResult SummaryPage()
{
bool createdatabaseEntry = NotifyCreateDatabaseEntry();
if (createdatabaseEntry)
{
// pop up success massage
}
else
{
// pop up error massage
}
return View();
}
public bool createdatabaseEntry : this method connect to the db
Please help
thank you in advance