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));
 }
Exemple #2
0
 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));
 }
Exemple #3
0
 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));
 }