public ActionResult Delete(int?id, FormCollection collection) { var result = m.CustomerDelete(id.GetValueOrDefault()); // "result" will be true or false // We probably won't do much with the result, because // we don't want to leak info about the delete attempt // In the end, we should just redirect to the list view return(RedirectToAction("index")); }
public ActionResult Delete(int?id, FormCollection collection) { var result = m.CustomerDelete(id.GetValueOrDefault()); return(RedirectToAction("index")); }