public ActionResult DeleteConfirmed(string id) { Society__Add_User society__Add_User = db.Society__Add_User.Find(id); db.Society__Add_User.Remove(society__Add_User); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "REGID,Aadhar_Card,Fname,Lname,Wing,Flat_No,Email,Contact,Password,Type")] Society__Add_User society__Add_User) { if (ModelState.IsValid) { db.Entry(society__Add_User).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(society__Add_User)); }
public ActionResult Create([Bind(Include = "REGID,Aadhar_Card,Fname,Lname,Wing,Flat_No,Email,Contact,Password,Type")] Society__Add_User society__Add_User) { if (ModelState.IsValid) { db.Society__Add_User.Add(society__Add_User); db.SaveChanges(); return(RedirectToAction("Society_Home", "Login_Society")); } return(View(society__Add_User)); }
// GET: Society__Add_User/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Society__Add_User society__Add_User = db.Society__Add_User.Find(id); if (society__Add_User == null) { return(HttpNotFound()); } return(View(society__Add_User)); }