public ActionResult Create([Bind(Include = "idAdmin,Email,Password,ConfirmPassword")] Administrador administrador) { try { if (ModelState.IsValid) { db.Administradors.Add(administrador); admin.CreateCustomAdminuser(dbemp, administrador); admin.AddPermisionsToAdmin(dbemp, administrador); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(administrador)); } catch { return(View(administrador)); } }