public async Task <ActionResult> Edit([Bind(Include = "ID,time")] Map map) { if (ModelState.IsValid) { db.Entry(map).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(map)); }
public async Task <ActionResult> Edit([Bind(Include = "ID,name,currentHealth,maxHealth,currentLV")] Hero hero) { if (ModelState.IsValid) { db.Entry(hero).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(hero)); }