You could always do this:
public ActionResult Edit(int? productId)
{
if (productId != null)
{
return View("ViewWithTextBoxes.aspx");
}
return View("ViewWithEditDeleteLinks.aspx");
}
This being said, the case of showing edit and delete links doesn't seem like editing so I would recommend you using different action names. It seems more RESTful to me like this:
/products/index
/products/edit/{productId}
In this case you are having different actions and views for each case:
public ActionResult Index()
{
var products = _repository.GetProducts();
return View(products);
}
public ActionResult Edit(int productId)
{
var product = _repository.GetProduct(productId);
return View(product);
}