public ActionResult Delete(IdentityProviderViewModel model) { var idp = Mapper.Map <IdentityProvider>(model); _idpSvc.Remove(idp); TempData["SuccessMessage"] = "Identity provider has been successfully deleted"; return(RedirectToAction("Index", new { id = "" })); }