public ActionResult Delete(int id) { var lead = new Lead(); try { lead.DeleteLead(id); TempData["message"] = "Lead deleted successfully"; } catch (PodioException ex) { TempData["error"] = ex.Error.ErrorDescription; } return RedirectToAction("Index"); }