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