public ActionResult Edit([Bind(Include = "Id,UserGuid,Name,Password,Email,Wallet,RetrievePassWordCode,Sex,Country,Province,City,HeadImg,HeadImgHash,CreateTime,LastImgTime,Mobile,Token,IsEmailValid,IsGiveVouchers,DescName,DescHeadImg,TrueName,WeiChat,PartnerId")] User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(user)); }
public ActionResult Edit([Bind(Include = "Id,ZhuChang,KeChang,ZhuChangSuoXie,KeChangSuoXie,ZhuChangScore,KeChangScore,Status,StartTime")] Games games) { if (ModelState.IsValid) { games.CreateTime = DateTime.Now; db.Entry(games).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(games)); }