public ActionResult Create([Bind(Include = "Id,Name")] AspNetRoles aspNetRoles) { if (ModelState.IsValid) { db.AspNetRoles.Add(aspNetRoles); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(aspNetRoles)); }
public ActionResult Create([Bind(Include = "Id,Email,EmailConfirmed,PasswordHash,SecurityStamp,PhoneNumber,PhoneNumberConfirmed,TwoFactorEnabled,LockoutEndDateUtc,LockoutEnabled,AccessFailedCount,UserName")] AspNetUsers aspNetUsers) { if (ModelState.IsValid) { db.AspNetUsers.Add(aspNetUsers); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(aspNetUsers)); }