public ActionResult Delete(string value) { try { int index = int.Parse(value); MessageProcessor.DeleteElement(index - 1); } catch (Exception ex) { Trace.TraceError("Exception deleting row '{0}'", ex.Message); } return(View("Index")); }