public ActionResult Edit([Bind(Include = "Id,Name,Service,Description,Materials,OpenTime,CloseTime,State,Suburb,Address,Postcode,Phone,Email,Findme")] Cloth cloth) { if (ModelState.IsValid) { db.Entry(cloth).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cloth)); }
public ActionResult Edit([Bind(Include = "Id,Name,Address,Area,Tradingname,Industry_Description,Latitude,Longitude")] Cafe cafe) { if (ModelState.IsValid) { db.Entry(cafe).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cafe)); }
public ActionResult Edit([Bind(Include = "Id,Name,Orgname,Address1,Address2,Address3,City,State,Postcode,MainActivit,OtherActivity,Purposes")] Viccharity viccharity) { if (ModelState.IsValid) { db.Entry(viccharity).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(viccharity)); }