what I've got is a edit page and a create page. That are two links in another page, I am trying to create a redirect when the user tries to press on the edit button, if there is no value in the id, the site will take the user to the add page.
Public ActionResult Edit (int id)
{
if (Product.Id.Equals(null))
{
RedirectToAction("Add");
}
//Edit Page Code is here
}
what I've got is wrong