private Delete ( int id ) : System.Web.Mvc.ActionResult | ||
id | int | |
Résultat | System.Web.Mvc.ActionResult |
public ActionResult Delete(int id)
{
try
{
_PostTag.usunPost(id);
return RedirectToAction("Index");
}
catch
{
return RedirectToAction("Index");
}
}