public ActionResult Delete(Papel papel) { Papel p = InternoRoleManager.FindById(papel.Id); if (p != null) { IdentityResult resultado = InternoRoleManager.Delete(p); if (resultado.Succeeded) { return(RedirectToAction("Index")); } else { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } } else { return(HttpNotFound()); } }